joaopedrok

Results 4 comments of joaopedrok

Imagine that you are using some architectures like real MVC or MVP. Inside your presenter or controller you will have something like FooService. Also you gonna have a method like...

My unit test is like that ``` func testIfTheStateIsSuccessWithSuccessRequestWhenFetchProjectsIsCalled() { stub(condition: isPath("/api/v1/projects")) { request in let stubPath = OHPathForFile("ProjectsResponse.json", type(of: self)) return fixture(filePath: stubPath!, status: 200, headers: ["Content-Type":"application/json"]) } self.sut.fetchProjects()...

I see your point related to my architecture and I know that is not a presenter. Is more like a controller from the real MVC that handle all the business...