Ejemplo n.º 1
0
        private static PersonNameController CreateController(ScenarioOptions scenarioOptions = null)
        {
            scenarioOptions = scenarioOptions ?? new ScenarioOptions();

            scenarioOptions.MockQueryProcessor = new Mock <IProcessQueries>(MockBehavior.Strict);

            var services = new PersonNameServices(scenarioOptions.MockQueryProcessor.Object);

            var controller = new PersonNameController(services);

            return(controller);
        }
Ejemplo n.º 2
0
 public PersonNameController(PersonNameServices services)
 {
     _services = services;
 }
Ejemplo n.º 3
0
 public PersonNameController(PersonNameServices services)
 {
     _services = services;
 }
        private static PersonNameController CreateController(ScenarioOptions scenarioOptions = null)
        {
            scenarioOptions = scenarioOptions ?? new ScenarioOptions();

            scenarioOptions.MockQueryProcessor = new Mock<IProcessQueries>(MockBehavior.Strict);

            var services = new PersonNameServices(scenarioOptions.MockQueryProcessor.Object);

            var controller = new PersonNameController(services);

            return controller;
        }