示例#1
0
        public async Task Should_export_transactionreport_proxy()
        {
            _client = GetUmbClient(true, proxy: true);
            var sourcePath = SourcePath;
            var beginDate  = DateTime.Today.AddDays(-10);
            var endDate    = DateTime.Today.AddDays(-1);
            var task1      = await TransactionReport.ExportFileAsync(_client, sourcePath, beginDate, endDate).ConfigureAwait(false);

            Check.That(task1).IsTrue();
            var task2 = TransactionReport.GetReadXml(_client, sourcePath);

            Check.That(task2).IsNotEmpty();
        }
示例#2
0
 [TearDown] public void TearDown()
 {
     _client?.Dispose(); _client = null;
 }
示例#3
0
 [SetUp] public void Configure() => _client = GetUmbClient();