예제 #1
0
        public void AdjustMatchesForward()
        {
            var repository = Repository.CreatePopulatedRepository();
            var board      = repository.GetBoardById(1);

            board.AutoVerification = 10;

            var boardService = new BoardService(repository);

            boardService.AdjustMatchDeadlines(board);

            foreach (var match in board.Matches)
            {
                Assert.That(match.VerificationDeadline, Is.EqualTo(match.Created.AddHours(10)));
            }
        }