Ejemplo n.º 1
0
        public async Task ShouldUpdateOnePhoneRecordByCallingCreate()
        {
            var phone = new PersonPhone
            {
                BusinessEntityID  = 9,
                PhoneNumber       = "816-555-9999",
                PhoneNumberTypeID = 2
            };

            await _phoneRepo.UpdatePhone(phone);

            var result = await _phoneRepo.GetPhoneByID(phone.BusinessEntityID, phone.PhoneNumber, phone.PhoneNumberTypeID);

            Assert.Equal(phone.BusinessEntityID, result.BusinessEntityID);
            Assert.Equal(phone.PhoneNumber, result.PhoneNumber);
            Assert.Equal(phone.PhoneNumberTypeID, result.PhoneNumberTypeID);
        }