Exemplo n.º 1
0
        public async Task ShouldDeleteOnePhoneRecord()
        {
            int entityID    = 1;
            var phoneNumber = "697-555-0142";
            var phoneTypeID = 1;

            var phone = await _phoneRepo.GetPhoneByID(entityID, phoneNumber, phoneTypeID);

            Assert.NotNull(phone);

            await _phoneRepo.DeletePhone(phone);

            var result = await _phoneRepo.GetPhoneByID(entityID, phoneNumber, phoneTypeID);

            Assert.Null(result);
        }