public void PostDonarTest() { var donarRepository = new DonorRepository(donarcontextmock.Object, orgcontextmock.Object); var donar = new DonarService.Models.Donar() { DonorId = 3, Amount = 200, DateOfDonation = DateTime.Parse("10-10-2020"), DonorName = "kodati", organization_Id = 1 }; var donartest = donarRepository.Add2(donar); Assert.AreEqual(3, donartest.DonorId); }