This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static async IAsyncEnumerable<IEnumerable<object?>> GetResults(this SqlConnection connection, string query, [EnumeratorCancellation] CancellationToken token) | |
{ | |
if (string.IsNullOrWhiteSpace(query)) | |
{ | |
throw new ArgumentException(nameof(query)); | |
} | |
var wasClosed = connection.State != ConnectionState.Open; | |
try | |
{ | |
if (wasClosed) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const API = Cypress.env('API'); | |
const headers = { | |
Authorization: '', | |
}; | |
Cypress.Commands.add('loginUser', () => { | |
return cy.readFile('aad-tokens.json') | |
.then(creds => { | |
// set auth headers so test setup calls are authorized |