Пример #1
0
        public void DeleteRankingErrorTest()
        {
            //// Arrange
            var errors = new List <string>();

            var mockRepository = new Mock <IRankingRepository>();
            var rankingService = new RankingService(mockRepository.Object);

            //// Act
            rankingService.DeleteRanking(null, -1, ref errors);

            //// Assert
            Assert.AreEqual(2, errors.Count);
        }
Пример #2
0
 public void RankingService_DeleteRanking_Throws_On_Null_Ranking()
 {
     AutoTester.ArgumentNull <Ranking>(marker => RankingService.DeleteRanking(marker));
 }