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}"); } }
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); }
public void Should_Throw_On_InValid_GetWarehouseFilter() { var netoStore = GetStoreManager(); var filter = new GetWarehouseFilter(); Assert.Throws<NetoRequestException>(() => netoStore.Warehouses.GetWarehouse(filter)); }