public async Task EditShouldReturnTrueAndEditedMedicine() { var db = Tests.GetDatabase(); var medicineService = new MedicineService(db); await medicineService.Create("Lekarstvo", "6 x 2", "Lekuva vsichkooooooooooooooooo"); await db.SaveChangesAsync(); var id = await db.Medicines .Where(d => d.Name == "Lekarstvo") .Select(d => d.Id) .FirstOrDefaultAsync(); var edited = await medicineService .Edit(id, "EditedName", "6 x 1", "Description"); edited.Should() .BeTrue(); db.Medicines.Should() .HaveCount(1); }