Ejemplo n.º 1
0
        public async Task ListProducts_Should_ListProducts()
        {
            var client = new PrintAuraProductsClient();

            var response = await client.ListProductsAsync();

            Assert.True(response.Result == 1);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public ProductManager()
 {
     client = new PrintAuraProductsClient();
     ProductMappings.Configure();
 }