public void AddShop() { var mock = new Mock <IShopDao>(); mock.Setup(item => item.AddShop(It.IsAny <Shop>())).Returns(100); var logic = new ShopLogic(mock.Object); var shop = new Shop() { NameShop = "Lime", Address = "Зарубина", DescriptionShop = "Кафе", Website = "lime.ru", Rating = 0, PhoneShop = "+7909323232", City = "Saratov", OpeningHours = "9:00-21:00" }; int id = logic.AddShop(shop); Assert.AreEqual(id, 100, "Id is not equal"); }