示例#1
0
        public async Task ListProducts_Should_ListProducts()
        {
            var client = new PrintAuraProductsClient();

            var response = await client.ListProductsAsync();

            Assert.True(response.Result == 1);
        }
示例#2
0
        public async Task ListColors_Should_ContainColors()
        {
            var client = new PrintAuraProductsClient();

            var response = await client.ListColorsAsync();

            Assert.True(response.Result == 1);
            Assert.True(response.Message.IsEmpty());
            Assert.True(response.Colors != null && response.Colors.Count > 0);
        }
 public ProductManager()
 {
     client = new PrintAuraProductsClient();
     ProductMappings.Configure();
 }