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); }
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")); }