public void Repo_AddFarm_Test() { var farmsCountBefore = _farms.Count; _farmRepository.Add( new FarmEntity { AmountOfAnimals = Faker.NumberFaker.Number(0, 100), DelitingDate = null, Id = 11, IsDelete = false, Name = Faker.CompanyFaker.Name(), OwnerName = Faker.NameFaker.MaleName() } ); _db.SaveChanges(); int g = _farmRepository.GetAll().Count(); int y = ++farmsCountBefore; Assert.AreEqual(y, g); }