public void AccountGetAllForCompanyId_SIMPLIFIED() { // ARRANGE const int expectedAccountCount = 3000000; var parameters = new CompanyIdParameters { CompanyId = 1 }; // ACT var accounts = Context.AccountGetAllForCompanyId.ExecuteFor(parameters); var actualAccountcount = accounts.Count; // ASSERT Assert.AreEqual(expectedAccountCount, actualAccountcount); }
public void StoredProcedure_WithTimeoutLessThanExecutionTime_TimesOut() { // ARRANGE const int expectedTimeout = 10; var parameters = new CompanyIdParameters { CompanyId = 1 }; var procedure = new AccountGetAllForCompanyId(parameters); // ACT Connection.ExecuteStoredProcedure(procedure, commandTimeout: expectedTimeout); // ASSERT }