예제 #1
0
        public void Should_Throw_On_InValid_GetCustomerFilter()
        {
            var netoStore = GetStoreManager();
            var filter    = new GetCustomerFilter();

            Assert.Throws <NetoRequestException>(() => netoStore.Customers.GetCustomer(filter));
        }
예제 #2
0
        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);
        }
예제 #3
0
        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}");
            }
        }
예제 #4
0
 public GetCustomerRequest(GetCustomerFilter customerFilter)
 {
     this._getCustomerFilter = customerFilter;
 }