Ejemplo n.º 1
0
 protected override void OnStart()
 {
     _loggingSubsystem.Start();
     _servicesSubsystem.Start();
     _validatorSubsystem.Start();
     _executorsSubsystem.Start();
 }
        public void Given_ExecutorsSubsystem_When_Initializing_Then_Dependencies_Are_Registered()
        {
            using (var startup = new Startup())
            {
                startup.Start();

                var container = Startup.Container;

                var executorsSubsystem = new ExecutorsSubsystem(container);
                executorsSubsystem.Start();

                var mazeCoordinatorExecutor                  = container.Resolve <IMazeCoordinatorExecutor>();
                var mazeTransformerExecutor                  = container.Resolve <IMazeTransformerExecutor>();
                var mazePathfinderAlgorithmExecutor          = container.Resolve <IMazePathfinderAlgorithmExecutor>();
                var mazeDimensionPropertiesExtractorExecutor = container.Resolve <IMazeDimensionPropertiesExtractorExecutor>();

                Assert.IsNotNull(mazeCoordinatorExecutor);
                Assert.IsNotNull(mazeTransformerExecutor);
                Assert.IsNotNull(mazePathfinderAlgorithmExecutor);
                Assert.IsNotNull(mazeDimensionPropertiesExtractorExecutor);
            }
        }