public void GetCatalogItemsTest() { var container = new TF.Container(new Uri("http://localhost:5588/odata/")); var data = container.CategoryTrees.ToList(); container.CategoryTrees.Single(r => r.Id == Guid.Parse("be2ebf01-4846-498f-92c5-33e8a3882a4d")).Products; Assert.IsNotNull(data); }
public void GetItemTest() { var container = new TF.Container(new Uri("http://localhost:5588/odata/")); var data = container .Products .Where(r => r.Name == "WOK") .ToList(); var alldata = container .CreateQuery<TF.AggregateProduct>("Products") .Execute(); Assert.IsNotNull(data); Assert.IsNotNull(alldata); }