Example #1
0
        static Board_Tests()
        {
            IServiceProvider serviceProvider = DIContainersTestConfiguration.GetDIServiceProvider();

            _gameSettings            = serviceProvider.GetService <IGameSettings>();
            _shipPositionsRandomizer = serviceProvider.GetService <IShipPositionsRandomizer>();
            _shipsGroupValidator     = serviceProvider.GetService <IShipsGroupValidator>();
        }
Example #2
0
        public ShipsGroupValidator_Tests()
        {
            IServiceProvider serviceProvider = DIContainersTestConfiguration.GetDIServiceProvider();

            _gameSettings = serviceProvider.GetService <IGameSettings>();
        }
Example #3
0
        public GameService_Tests()
        {
            IServiceProvider serviceProvider = DIContainersTestConfiguration.GetDIServiceProvider();

            _gameSettings = serviceProvider.GetService <IGameSettings>();
        }
        public InMemoryGameRepository_Tests()
        {
            IServiceProvider serviceProvider = DIContainersTestConfiguration.GetDIServiceProvider();

            _difficulty = serviceProvider.GetService <IDifficultyLevel>();
        }