예제 #1
0
        static dynamic CreateDatabase(MockDatabase mockDatabase)
        {
            var mockSchemaProvider = new MockSchemaProvider();

            mockSchemaProvider.SetProcedures(new[] { "dbo", "ProcedureWithParameters" },
                                             new[] { "dbo", "ProcedureWithoutParameters" });
            mockSchemaProvider.SetParameters(new[] { "dbo", "ProcedureWithParameters", "@One" },
                                             new[] { "dbo", "ProcedureWithParameters", "@Two" });
            return(new Database(new AdoAdapter(new MockConnectionProvider(new MockDbConnection(mockDatabase), mockSchemaProvider))));
        }