Exemplo n.º 1
0
        static void GetWarehouse(StoreManager neto)
        {
            var filter = new GetWarehouseFilter(1);

            var result = neto.Warehouses.GetWarehouse(filter);

            foreach (Warehouse i in result)
            {
                Console.WriteLine($"{i.WarehouseID} - {i.WarehouseName}");
            }
        }
Exemplo n.º 2
0
        public void Should_Get_Single_Warehouse_From_ID(int id)
        {
            var netoStore = GetStoreManager();

            var filter = new GetWarehouseFilter(id);

            Warehouse[] result = netoStore.Warehouses.GetWarehouse(filter);

            Assert.IsNotNull(result);
            Assert.AreEqual(1, result.Length);
        }
Exemplo n.º 3
0
 public void Should_Throw_On_InValid_GetWarehouseFilter()
 {
     var netoStore = GetStoreManager();
     var filter = new GetWarehouseFilter();
     Assert.Throws<NetoRequestException>(() => netoStore.Warehouses.GetWarehouse(filter));
 }