示例#1
0
    public async Task DropAll()
    {
        var synonym = new Synonym(SqlConnection, SqlConnection.Database);
        await synonym.Create("mySynonym3", "target");

        await synonym.DropAll();

        await Verifier.Verify(SqlConnection)
        .SchemaSettings(tables: false);
    }
示例#2
0
    public async Task Create()
    {
        var synonym = new Synonym(SqlConnection, SqlConnection.Database);

        await synonym.DropAll();

        await synonym.Create("mySynonym1", "target");

        await Verifier.Verify(SqlConnection)
        .SchemaSettings(tables: false)
        .AddScrubber(builder => builder.Replace(SqlConnection.Database, "TargetDb"));
    }