示例#1
0
        private static void ResetDatabase()
        {
            var checkpoint = new Checkpoint
            {
                SchemasToExclude = new[] { "RoundhousE" },
                TablesToIgnore   = new[]
                {
                    "sysdiagrams",
                    "ApplicationStatus",
                }
            };

            checkpoint.Reset(TestDependencyScope.Resolve <Func <IDbConnection> >()().ConnectionString).GetAwaiter().GetResult();
        }
示例#2
0
 public static object Resolve(Type type)
 {
     return(TestDependencyScope.Resolve(type));
 }
示例#3
0
 public static T Resolve <T>()
 {
     return(TestDependencyScope.Resolve <T>());
 }