Beispiel #1
0
 public void CanUpdateAllUsersToUpperCase()
 {
     using (UpperCaseUserNames update = new UpperCaseUserNames(TestDatabase.ConnectionStringName))
     {
         update.RegisterLast(new UpdateUserNames(TestDatabase.ConnectionStringName));
         update.Execute();
     }
     AssertUpdatedAllRows();
 }
Beispiel #2
0
 public void CanUpdateAllUsersToUpperCase()
 {
     using (UpperCaseUserNames update = new UpperCaseUserNames())
     {
         update.RegisterLast(new UpdateUserNames());
         update.Execute();
     }
     AssertUpdatedAllRows();
 }
Beispiel #3
0
 public void CanUpdateAllUsersToUpperCase()
 {
     using (UpperCaseUserNames update = new UpperCaseUserNames())
     {
         update.RegisterLast(new UpdateUserNames());
         update.Execute();
     }
     AssertUpdatedAllRows();
 }
        public void BulkInsertUpdatedRows()
        {
            using (UpperCaseUserNames update = new UpperCaseUserNames())
            {
                update.RegisterLast(new BulkInsertUsers());
                update.Execute();
            }

            AssertUpdatedAllRows();
        }
Beispiel #5
0
        public void BulkInsertUpdatedRows()
        {
            if(expectedCount != GetUserCount("1 = 1"))
                return;//ignoring test

            using (UpperCaseUserNames update = new UpperCaseUserNames())
            {
                update.RegisterLast(new BulkInsertUsers());
                update.Execute();
            }

            AssertUpdatedAllRows();
        }
        public void BulkInsertUpdatedRows()
        {
            if(expectedCount != GetUserCount("1 = 1"))
                Assert.Ignore("That is _really_ strange");

            using (UpperCaseUserNames update = new UpperCaseUserNames())
            {
                update.RegisterLast(new BulkInsertUsers());
                update.Execute();
            }

            AssertUpdatedAllRows();
        }
Beispiel #7
0
        public void BulkInsertUpdatedRows()
        {
            if (expectedCount != GetUserCount("1 = 1"))
            {
                return;//ignoring test
            }
            using (UpperCaseUserNames update = new UpperCaseUserNames(TestDatabase.ConnectionStringName))
            {
                update.RegisterLast(new BulkInsertUsers(TestDatabase.ConnectionStringName));
                update.Execute();
            }

            AssertUpdatedAllRows();
        }
Beispiel #8
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();
        }
Beispiel #9
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();
        }