Exemplo 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>();
        }
Exemplo 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>();
        }