Exemple #1
0
        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();
        }