Пример #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);
        }
        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;
        }