예제 #1
0
 public override void SetUp()
 {
     base.SetUp();
     currentUserCount = GetUserCount("1 = 1");
     using (PushDataToDatabase push = new PushDataToDatabase(expectedCount))
         push.Execute();
 }
예제 #2
0
 public LoadTestFixture(TestDatabaseFixture testDatabase)
     : base(testDatabase)
 {
     _currentUserCount = GetUserCount("1 = 1");
     using (PushDataToDatabase push = new PushDataToDatabase(testDatabase.ConnectionStringName, expectedCount))
     {
         push.Execute();
     }
 }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }
예제 #5
0
 public LoadTestFixture()
 {
     currentUserCount = GetUserCount("1 = 1");
     using (PushDataToDatabase push = new PushDataToDatabase(expectedCount))
         push.Execute();
 }
예제 #6
0
 public LoadTestFixture()
 {
     currentUserCount = GetUserCount("1 = 1");
     using (PushDataToDatabase push = new PushDataToDatabase(expectedCount))
         push.Execute();
 }