public async Task CheckApprovingAppointmentAsync() { ApplicationDbContext db = GetDb(); var repository = new EfDeletableEntityRepository <Appointment>(db); var service = new AppointmentsService( repository, this.usersService.Object, this.cardsService.Object, this.proceduresService.Object, this.categoriesService.Object); string appointmentId = await this.GetAppointmentIdAsync(service); await service.ApproveAsync(appointmentId); var appointment = await GetAppointmentAsync(repository, appointmentId); Assert.Equal(Status.Approved, appointment.Status); }