public void DeleteContact_ContactExists_ContactRemoved( DataAdapterProvider provider, IContactFactory contactFactory, IContact contact, LeaseOwner leaseOwner, TestIndexUtils contactIndex) { using (contactIndex) { provider.SaveContact(contact, new ContactSaveOptions(true, leaseOwner)).Should().BeTrue(); provider.DeleteContact(contact.Id); var actual = provider.TryLoadContact(contact.Id, contactFactory, leaseOwner, TimeSpan.FromMinutes(1)); actual.Status.Should().Be(LockAttemptStatus.NotFound); actual.Object.Should().BeNull(); } }