コード例 #1
0
        public async Task SerializeProducts()
        {
            var products = await ProductOperations.GetProductsByCategory(3, false);

            var json = ProductOperations.Serialize(products);

            Assert.IsNotNull(json);
            File.WriteAllText("SerializedProducts.json", json);
        }