public void GetOrders_StoreContainsOrders_ReceiveOrders2() { //------------ Arrange //------------ Act var sc = new SearchCriteria() { filter_groups = new List <FilterGroup>() { new FilterGroup() { filters = new List <Filter> { new Filter(@"updated_at", @"2016-07-01 00:00:00", Filter.ConditionType.GreaterThan), } } }, page_size = 100, current_page = 1 }; //------------ Assert var qwe = ( WebRequest )WebRequest.Create() .Method(MagentoWebRequestMethod.Get) .Path(MagentoServicePath.CreateProductsServicePath()) .Parameters(sc) .Url(MagentoUrl.Create("http://xxx")) ; var res = qwe.RunAsync(); res.Wait(); }
public static IEnumerable GetCliTestStoreCredentials() { string url = TestContext.Parameters["url"]; string login = TestContext.Parameters["login"]; string password = TestContext.Parameters["password"]; if (!string.IsNullOrWhiteSpace(url) && !string.IsNullOrWhiteSpace(login) && !string.IsNullOrWhiteSpace(password)) { return new TestCaseData[] { new TestCaseData(new RepositoryTestCase() { Url = MagentoUrl.Create(url), MagentoLogin = MagentoLogin.Create(login), MagentoPass = MagentoPass.Create(password) }) } } ; return(null); } }
public ProductRepository(AuthorizationToken token, MagentoUrl url) { this.Url = url; this.Token = token; }
public CatalogStockItemRepository(AuthorizationToken token, MagentoUrl url) { this.Url = url; this.Token = token; }
public IntegrationAdminTokenRepository(MagentoUrl url) { this.Url = url; }
public SalesOrderRepositoryV1(AuthorizationToken token, MagentoUrl url) { this.Url = url; this.Token = token; }