public void Delete_EntityDoesntExists_NoChange() { using(var store = new Store(BuildConfiguration())) { OnStoreCreate(store); using(var steps = new Steps(store)) { var person = CreatePerson(1); // Arrange steps.BeginConversation(); // Act steps.DeletePerson(person); } } }
public void Delete_EntityExists_EntityIsRemoved() { using(var store = new Store(BuildConfiguration())) { OnStoreCreate(store); using(var steps = new Steps(store)) { var person = CreatePerson(1); // Arrange steps.BeginConversation(); steps.SavePerson(person); // Act steps.DeletePerson(person); // Assert steps.VerifyPersonDoesntExist(person); } } }