示例#1
0
        public async Task FileDownload()
        {
            //// Arrange
            var geoClient = new GeoClient(new HttpClient())
            {
                BaseUrl = "http://localhost:13452"
            };

            //// Act
            using (var response = await geoClient.GetUploadedFileAsync(1, true))
            {
                //// Assert
                Assert.AreEqual(1, response.Stream.ReadByte());
                Assert.AreEqual(2, response.Stream.ReadByte());
                Assert.AreEqual(3, response.Stream.ReadByte());
            }
        }