joaopedrok
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...
Ok. I will provide one.
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...
i have the same problem
I really need to use that in landscape. Your component is good but application will be only in landscape mode. Could you please help me?