public void DeleteShop() { 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.DeleteById(It.IsAny <int>())); Assert.AreEqual(true, logic.DeleteById(1), "Method Delete doesn't work"); }