Commit eb5865d

mo <mo@mokhan.ca>
2009-10-10 16:31:14
removed warning about calling obsolete developwithpassion api.
1 parent a3f512c
product/application.tests/data/SqlDatabaseGatewayFactorySpecs.cs
@@ -16,7 +16,7 @@ namespace tests.data
 
             because b = () =>
             {
-                result = sut.gateway_to("data source=(local);Integrated Security=SSPI;initial catalog=blah;", "System.Data.SqlClient");
+                result = controller.sut.gateway_to("data source=(local);Integrated Security=SSPI;initial catalog=blah;", "System.Data.SqlClient");
             };
 
             it should_return_a_database_gateway = () =>
product/application.tests/data/SqlDatabaseGatewaySpecs.cs
@@ -14,10 +14,10 @@ namespace tests.data
         {
             context c = () =>
             {
-                command_factory = the_dependency<DatabaseCommandFactory>();
-                first_script = an<SqlFile>();
-                second_script = an<SqlFile>();
-                command = an<DatabaseCommand>();
+                command_factory = controller.the_dependency<DatabaseCommandFactory>();
+                first_script = controller.an<SqlFile>();
+                second_script = controller.an<SqlFile>();
+                command = controller.an<DatabaseCommand>();
 
                 var table = new DataTable();
                 var row = table.NewRow();
@@ -42,7 +42,7 @@ namespace tests.data
         {
             because b = () =>
             {
-                sut.run(first_script);
+                controller.sut.run(first_script);
             };
 
             it should_skip_that_script = () =>
@@ -56,7 +56,7 @@ namespace tests.data
         {
             because b = () =>
             {
-                sut.run(second_script);
+                controller.sut.run(second_script);
             };
 
             it should_execute_the_sql_from_each_script_against_the_database = () =>
product/application.tests/data/SqlFileSpecs.cs
@@ -11,7 +11,7 @@ namespace tests.data
         {
             after_the_sut_has_been_created a = () =>
             {
-                sut.path = @"c:\\tmp\scripts\0099_the_gretzky_script.sql";
+                controller.sut.path = @"c:\\tmp\scripts\0099_the_gretzky_script.sql";
             };
         }
 
@@ -20,12 +20,12 @@ namespace tests.data
         {
             it should_return_true_when_it_is = () =>
             {
-                sut.is_greater_than(98).should_be_true();
+               controller. sut.is_greater_than(98).should_be_true();
             };
 
             it should_return_false_when_it_is_not = () =>
             {
-                sut.is_greater_than(99).should_be_false();
+                controller.sut.is_greater_than(99).should_be_false();
             };
         }
 
product/application.tests/io/WindowsFileSystemSpecs.cs
@@ -29,7 +29,7 @@ namespace tests.io
 
             because b = () =>
             {
-                results = sut.all_sql_files_from(directory);
+                results =controller. sut.all_sql_files_from(directory);
             };
 
             it should_return_each_sql_file_found_in_the_directory = () =>
product/application.tests/RunMigrationsCommandSpecs.cs
@@ -15,8 +15,8 @@ namespace tests
         {
             context c = () =>
             {
-                file_system = the_dependency<FileSystem>();
-                database_gateway_factory = the_dependency<DatabaseGatewayFactory>();
+                file_system = controller.the_dependency<FileSystem>();
+                database_gateway_factory = controller.the_dependency<DatabaseGatewayFactory>();
             };
 
             static protected FileSystem file_system;
@@ -37,7 +37,7 @@ namespace tests
 
             because b = () =>
             {
-                result = sut.can_handle(proper_arguments);
+                result = controller.sut.can_handle(proper_arguments);
             };
 
             it should_recognize_the_arguments = () => result.should_be_true();
@@ -56,7 +56,7 @@ namespace tests
 
             because b = () =>
             {
-                result = sut.can_handle(unknown_arguments);
+                result = controller.sut.can_handle(unknown_arguments);
             };
 
             it should_not_recognize_the_arguments_to_run_the_database_migrations = () => result.should_be_false();
@@ -71,10 +71,10 @@ namespace tests
         {
             context c = () =>
             {
-                old_migration = an<SqlFile>();
-                new_migration = an<SqlFile>();
-                arguments = an<ConsoleArguments>();
-                gateway = an<DatabaseGateway>();
+                old_migration = controller.an<SqlFile>();
+                new_migration = controller.an<SqlFile>();
+                arguments = controller.an<ConsoleArguments>();
+                gateway = controller.an<DatabaseGateway>();
 
                 database_gateway_factory
                     .is_told_to(x => x.gateway_to("blah=blah;", "System.Data.SqlClient"))
@@ -90,7 +90,7 @@ namespace tests
 
             because b = () =>
             {
-                sut.run_against(arguments);
+                controller.sut.run_against(arguments);
             };
 
             it should_run_each_migration_script = () =>