예제 #1
0
        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);
                }
            }
        }