public void GivenIHaveAppointmentDiaryToUpdateItShouldSave() { IAppointmentDiaryService appointmentDiaryService = new AppointmentDiaryService(mockedAppointmentDiaryRepository.Object); appointmentDiaryService.RemoveAppointmentDiary(sampleData); mockedAppointmentDiaryRepository.Verify(c => c.DeleteAppointmentDiary(sampleData)); }
public void GivenIHaveAppointmentDiaryToGetItShouldRetrieveAList() { IAppointmentDiaryService appointmentDiaryService = new AppointmentDiaryService(mockedAppointmentDiaryRepository.Object); appointmentDiaryService.RetrieveAppointmentDiaries("testuser"); mockedAppointmentDiaryRepository.Verify(c => c.GetAppointmentDiaries("testuser", null)); }
public void GivenIHaveAppointmentDiaryToCreateItShouldSave() { IAppointmentDiaryService appointmentDiaryService = new AppointmentDiaryService(mockedAppointmentDiaryRepository.Object); appointmentDiaryService.AddAppointmentDiary(sampleData); mockedAppointmentDiaryRepository.Verify(c => c.InsertAppointmentDiary(sampleData)); }