Пример #1
0
        public void GivenIHaveAppointmentDiaryToUpdateItShouldSave()
        {
            IAppointmentDiaryService appointmentDiaryService = new AppointmentDiaryService(mockedAppointmentDiaryRepository.Object);

            appointmentDiaryService.RemoveAppointmentDiary(sampleData);

            mockedAppointmentDiaryRepository.Verify(c => c.DeleteAppointmentDiary(sampleData));
        }
Пример #2
0
        public void GivenIHaveAppointmentDiaryToGetItShouldRetrieveAList()
        {
            IAppointmentDiaryService appointmentDiaryService = new AppointmentDiaryService(mockedAppointmentDiaryRepository.Object);

            appointmentDiaryService.RetrieveAppointmentDiaries("testuser");

            mockedAppointmentDiaryRepository.Verify(c => c.GetAppointmentDiaries("testuser", null));
        }
Пример #3
0
        public void GivenIHaveAppointmentDiaryToCreateItShouldSave()
        {
            IAppointmentDiaryService appointmentDiaryService = new AppointmentDiaryService(mockedAppointmentDiaryRepository.Object);

            appointmentDiaryService.AddAppointmentDiary(sampleData);

            mockedAppointmentDiaryRepository.Verify(c => c.InsertAppointmentDiary(sampleData));
        }