예제 #1
0
        public async void ThrowsGivenInvalidEntryId()
        {
            var phoneBookService = new PhoneBookService(null, _mockPhoneBookRepo.Object);

            await Assert.ThrowsAsync <PhoneBookNotFoundException>(
                async() => await phoneBookService.GetPhoneBookById(_invalidId)
                );
        }