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

            AssertUpdatedAllRows();
        }
示例#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();
        }
示例#6
0
        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();
        }
示例#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();
        }
示例#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();
        }
示例#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();
        }