public async Task Get() { var repo = new FactsetDailyBarApi( this.configuration, this.httpClientFactory, this.policyFactory, this.logger); var message = new FactsetSecurityDailyRequest { Requests = new List <FactsetSecurityRequestItem> { new FactsetSecurityRequestItem { Figi = "BBG000C6K6G9", From = new DateTime(2018, 01, 01), To = new DateTime(2018, 01, 05) } } }; await repo.GetWithTransientFaultHandlingAsync(message); Assert.IsTrue(true); }
public async Task Heartbeating() { var repo = new FactsetDailyBarApi( this.configuration, this.httpClientFactory, this.policyFactory, this.logger); var cts = new CancellationTokenSource(); await repo.HeartBeatingAsync(cts.Token); Assert.IsTrue(true); }