public async Task GetScanData() { var expected = new ScanDetails { ScanReference = _scanReference }; var actual = await NetverifyClient.GetScanDataAsync(_scanReference); Assert.IsType <ScanDetails>(actual); }
public async Task SubmitFlow() { var scanReference = await UploadDocument(); var scanStatus = new ScanStatus { Status = ScanStatusStatus.PENDING }; var i = 0; while (scanStatus.Status == ScanStatusStatus.PENDING && i < 20) { await Task.Delay(TimeSpan.FromSeconds(10)); scanStatus = await NetverifyClient.GetScanStatusAsync(scanReference); i++; } Assert.Equal(ScanStatusStatus.DONE, scanStatus.Status); var scanData = await NetverifyClient.GetScanDataAsync(scanStatus.ScanReference); DeepAssert.Equal(Defaults.DriverGbr, scanData, "Timestamp", "ScanReference", "Date"); }