public void write_transactional_script_with_no_role() { var rules = new DdlRules(); SpecificationExtensions.ShouldBeNull(rules.Role); var patch = new SchemaPatch(rules); var writer = new StringWriter(); patch.WriteScript(writer, w => { w.WriteLine("Hello."); }); SpecificationExtensions.ShouldNotContain(writer.ToString(), "SET ROLE"); SpecificationExtensions.ShouldNotContain(writer.ToString(), "RESET ROLE;"); }
public void do_not_write_event_sql_if_the_event_graph_is_not_active() { theStore.Events.IsActive(null).ShouldBeFalse(); SpecificationExtensions.ShouldNotContain(_sql, "public.mt_streams"); }