public async Task AddPaymentShouldAddCorrectCount() { var repository = new EfDeletableEntityRepository <Payment>(new ApplicationDbContext(this.options.Options)); var service = new PaymentsService(repository); var payment = new PaymentTypeInputModel { PaymentType = "Cash", ReservationId = Guid.NewGuid().ToString(), }; await service.AddAsync(payment); Assert.Equal(1, repository.All().Count()); }