示例#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}");
            }
        }
 public GetCustomerRequest(GetCustomerFilter customerFilter)
 {
     this._getCustomerFilter = customerFilter;
 }