예제 #1
0
 public static T ExecuteNew <T>(Func <T> func)
 {
     if (DatabaseTestHelpers.IsSqlAzure(ModelHelpers.BaseConnectionString))
     {
         var executionStrategy = new ExtendedSqlAzureExecutionStrategy();
         return(executionStrategy.Execute(func));
     }
     else
     {
         return(func());
     }
 }
예제 #2
0
 public static void ExecuteNew(Action action)
 {
     if (DatabaseTestHelpers.IsSqlAzure(ModelHelpers.BaseConnectionString))
     {
         var executionStrategy = new ExtendedSqlAzureExecutionStrategy();
         executionStrategy.Execute(action);
     }
     else
     {
         action();
     }
 }