コード例 #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
ファイル: Testing.cs プロジェクト: Dessyreqt/JobSearch
 public static object Resolve(Type type)
 {
     return(TestDependencyScope.Resolve(type));
 }
コード例 #3
0
ファイル: Testing.cs プロジェクト: Dessyreqt/JobSearch
 public static T Resolve <T>()
 {
     return(TestDependencyScope.Resolve <T>());
 }