Ejemplo n.º 1
0
        public TsqltTestClass(string testClassSchemaName, ITsqltTest[] tests)
        {
            TestClassSchemaName = testClassSchemaName;
            Tests = tests;

            _testDict = new Lazy<IDictionary<string, ITsqltTest>>(() =>
            {
                return tests.ToDictionary(t => t.ProcedureName);
            });
        }
Ejemplo n.º 2
0
 public IInstalledTest GetInstalledTest(ITsqltTest test, SqlConnection connection)
 {
     CreateTest(_testClassSchemaName, test.ProcedureName, test.TestCaseBody, connection);
     var fullTestName = $"[{_testClassSchemaName}].[{test.ProcedureName}]";
     return new InstalledTest(fullTestName);
 }