public void DeleteAppointmentTest() { var storage = MockRepository.GenerateMock <IStorage>(); storage.Expect(s => s.DeleteAppointment(appointment)); storage.Replay(); var storageStore = new StorageStore(storage); storageStore.DeleteAppointment(appointment); storage.VerifyAllExpectations(); }