public void UpdateShop() { var mock = new Mock <IShopDao>(); mock.Setup(item => item.GetShopById(It.Is <int>(v => v == 1))).Returns( new Shop { IDShop = 1, NameShop = "Lime", Address = "Зарубина", DescriptionShop = "Кафе", Website = "lime.ru", Rating = 0, PhoneShop = "+7909323232", City = "Saratov", OpeningHours = "9:00-21:00" }); var logic = new ShopLogic(mock.Object); mock.Setup(item => item.Update(It.IsAny <Shop>())); Assert.AreEqual(true, logic.Update( new Shop { IDShop = 1, NameShop = "Lime", Address = "Зарубина", DescriptionShop = "Кафе", Website = "lime.ru", Rating = 0, PhoneShop = "+7909323232", City = "Moscow", OpeningHours = "9:00-21:00" }), "Method Update doesn't work"); }