Esempio n. 1
0
        public async Task TestUpdateTask()
        {
            var AppointmentTypeService = new AppointmentTypeServices(_AppointmentTypeRepository.Object);

            var newAppointmentType = Builder <AppointmentType> .CreateNew()
                                     .With(q => q.id = 1)
                                     .Build();

            var result = await AppointmentTypeService.Update(newAppointmentType);

            Assert.AreEqual(newAppointmentType, result);
        }