Beispiel #1
0
        public void TestExceptionThrownWhenRoundNumberIsLessThanOne(int roundNumber)
        {
            RoundValidator rv    = new RoundValidator();
            var            round = new Round
            {
                RoundNumber = roundNumber
            };

            Assert.Throws <InvalidDataException>(() => rv.ValidateRound(round));
        }
        public Round Create(Round round)
        {
            var validatedRound = _roundVali.ValidateRound(round);

            return(_roundRepo.Create(validatedRound));
        }