public void Should_Throw_On_InValid_GetCustomerFilter() { var netoStore = GetStoreManager(); var filter = new GetCustomerFilter(); Assert.Throws <NetoRequestException>(() => netoStore.Customers.GetCustomer(filter)); }
public void Should_Get_Single_Customer_From_Username(string username) { var netoStore = GetStoreManager(); var filter = new GetCustomerFilter(username); Customer[] result = netoStore.Customers.GetCustomer(filter); Assert.IsNotNull(result); Assert.AreEqual(1, result.Length); }
static void GetCustomers(StoreManager neto) { var filter = new GetCustomerFilter("SAMPLE_John"); Customer[] result = neto.Customers.GetCustomer(filter); foreach (Customer i in result) { Console.WriteLine($"{i.ID} - {i.Username}"); } }
public GetCustomerRequest(GetCustomerFilter customerFilter) { this._getCustomerFilter = customerFilter; }