public override void SetUp() { base.SetUp(); currentUserCount = GetUserCount("1 = 1"); using (PushDataToDatabase push = new PushDataToDatabase(expectedCount)) push.Execute(); }
public LoadTestFixture(TestDatabaseFixture testDatabase) : base(testDatabase) { _currentUserCount = GetUserCount("1 = 1"); using (PushDataToDatabase push = new PushDataToDatabase(testDatabase.ConnectionStringName, expectedCount)) { push.Execute(); } }
public async Task CanUpdateAllUsersToUpperCase() { await SetupTables(); currentUserCount = await GetUserCount("1 = 1"); using (PushDataToDatabase push = new PushDataToDatabase(expectedCount)) await push.Execute(); using (UpperCaseUserNames update = new UpperCaseUserNames()) { update.RegisterLast(new UpdateUserNames()); await update.Execute(); } await AssertUpdatedAllRows(); }
public async Task BulkInsertUpdatedRows() { await SetupTables(); currentUserCount = await GetUserCount("1 = 1"); using (PushDataToDatabase push = new PushDataToDatabase(expectedCount)) await push.Execute(); if (expectedCount != await GetUserCount("1 = 1")) { return;//ignoring test } using (UpperCaseUserNames update = new UpperCaseUserNames()) { update.RegisterLast(new BulkInsertUsers()); await update.Execute(); } await AssertUpdatedAllRows(); }
public LoadTestFixture() { currentUserCount = GetUserCount("1 = 1"); using (PushDataToDatabase push = new PushDataToDatabase(expectedCount)) push.Execute(); }
public LoadTestFixture() { currentUserCount = GetUserCount("1 = 1"); using (PushDataToDatabase push = new PushDataToDatabase(expectedCount)) push.Execute(); }