コード例 #1
0
        public void ShopTest2()
        {
            var factory = new LightspeedFactory();
            var service = factory.CreateShopsService(new LightspeedConfig());

            service.UpdateOnHandQuantity();
        }
コード例 #2
0
        public void ShopTest()
        {
            var factory = new LightspeedFactory();
            var service = factory.CreateShopsService(new LightspeedConfig(797, "303f2b1c8400dff842a1376ce3370eb52f3c127b5e1777b723c4691141d7d900"));

            var shops = service.GetShops();

            Assert.Greater(shops.Count(), 0);
        }
コード例 #3
0
        public void ServiceTest()
        {
            var factory   = new LightspeedFactory();
            var service   = factory.CreateOrdersService(new LightspeedConfig());
            var startDate = DateTime.ParseExact("2015-05-16T16:30:27", "yyyy-MM-ddTHH:mm:ss",
                                                CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal);
            var endDate = startDate.Add(new TimeSpan(10, 0, 0, 0));

            var orders = service.GetOrders(startDate, endDate);

            Assert.Greater(orders.Count(), 0);
        }