public void GetShops() { var mock = new Mock <IShopDao>(); mock.Setup(item => item.GetShops()).Returns(new List <Shop>() { new Shop() { NameShop = "Lime", Address = "Зарубина", DescriptionShop = "Кафе", Website = "lime.ru", Rating = 0, PhoneShop = "+7909323232", City = "Saratov", OpeningHours = "9:00-21:00" } }); var logic = new ShopLogic(mock.Object); var shops = logic.GetShops().ToList(); Assert.AreEqual(shops.Count, 1); }