Esempio n. 1
0
        public void CreateStrategy_WhenDirectionIsNotUpNorDown_ShouldCreateNullGameStrategy()
        {
            // Arrange
            var factory = new ProcessGameStrategyFactory(_teamSeasonRepository);

            // Act
            var strategy = factory.CreateStrategy((Direction)3);

            // Assert
            strategy.ShouldBeOfType <NullGameStrategy>();
        }
Esempio n. 2
0
        public void CreateStrategy_WhenDirectionIsDown_ShouldCreateSubtractGameStrategy()
        {
            // Arrange
            var factory = new ProcessGameStrategyFactory(_teamSeasonRepository);

            // Act
            var strategy = factory.CreateStrategy(Direction.Down);

            // Assert
            strategy.ShouldBeOfType <SubtractGameStrategy>();
        }