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

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

            var result = await AppointmentTypeService.Add(newAppointmentType);

            Assert.True(result.id == 525);
        }