Exemple #1
0
        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);
        }
 public PersonInfoController(PersonInfoServices services)
 {
     _services = services;
 }
        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;
        }
 public PersonInfoController(PersonInfoServices services)
 {
     _services = services;
 }