Exemplo n.º 1
0
        public async Task TestNonExistentPart()
        {
            var api   = new BricklinkImageApi();
            var image = await api.GetImageBytesAsync(ItemTypeCodes.Part, "8675309", 1, ImageFormat.Jpeg);

            Assert.IsNull(image);
        }
Exemplo n.º 2
0
        public async Task TestValidPart()
        {
            var api   = new BricklinkImageApi();
            var image = await api.GetImageBytesAsync(ItemTypeCodes.Part, "15068", 11, ImageFormat.Jpeg);

            Assert.IsNotNull(image);
            Assert.AreNotEqual(0, image.Length);
        }