private static PersonInfoController CreateController(ScenarioOptions scenarioOptions = null) { scenarioOptions = scenarioOptions ?? new ScenarioOptions(); scenarioOptions.MockQueryProcessor = new Mock <IProcessQueries>(MockBehavior.Strict); var services = new PersonInfoServices(scenarioOptions.MockQueryProcessor.Object); var controller = new PersonInfoController(services); return(controller); }
private static PersonInfoController CreateController(ScenarioOptions scenarioOptions = null) { scenarioOptions = scenarioOptions ?? new ScenarioOptions(); scenarioOptions.MockQueryProcessor = new Mock<IProcessQueries>(MockBehavior.Strict); var services = new PersonInfoServices(scenarioOptions.MockQueryProcessor.Object); var controller = new PersonInfoController(services); return controller; }