private IAsyncEnumerable <Vehicle> FetchWithKeys(string key, string correct) { SecureString ss = new SecureString(); foreach (char c in key) { ss.AppendChar(c); } ss.MakeReadOnly(); return(new MotTestClient(ss, MotTestClientFetchMocks.SetupAuthenticationMock(correct).Object).Page(1).FetchAsync()); }
private IAsyncEnumerable <Vehicle> FetchWithStatusCode(HttpStatusCode code) { return(new MotTestClient(new SecureString(), MotTestClientFetchMocks.SetupStatusCodeMock(code).Object).FetchAsync()); }
private IAsyncEnumerable <Vehicle> FetchWithResponse(string response) { return(new MotTestClient(new SecureString(), MotTestClientFetchMocks.SetupRecordResponseMock(response).Object).Page(1).FetchAsync()); }