예제 #1
0
        public void Repo_EditFarm_Test()
        {
            var farm = _farmRepository.GetFarmById(44);

            farm.AmountOfAnimals = 666;

            _farmRepository.UpdateFarm(farm);
            _db.SaveChanges();
            farm = _farmRepository.GetFarmById(44);

            Assert.AreEqual(666, farm.AmountOfAnimals);
        }