protected virtual SynonymScriptBuilder CreateSynonymBuilder()
        {
            var sqlSynonymScriptElementFactory = new SqlSynonymScriptElementFactory();

            return(new SynonymScriptBuilder(
                       sqlSynonymScriptElementFactory,
                       sqlSynonymScriptElementFactory,
                       sqlSynonymScriptElementFactory,
                       sqlSynonymScriptElementFactory,
                       new SqlCommentScriptElementFactory()));
        }
        public virtual IScriptBuilder CreateSynonymBuilder(RdbmsProviderDefinition storageProviderDefinition)
        {
            ArgumentUtility.CheckNotNull("storageProviderDefinition", storageProviderDefinition);

            var sqlSynonymScriptElementFactory = new SqlSynonymScriptElementFactory();

            return(new SynonymScriptBuilder(
                       sqlSynonymScriptElementFactory,
                       sqlSynonymScriptElementFactory,
                       sqlSynonymScriptElementFactory,
                       sqlSynonymScriptElementFactory,
                       new SqlCommentScriptElementFactory()));
        }
        public override void SetUp()
        {
            base.SetUp();

            _factory = new SqlSynonymScriptElementFactory();

            _tableDefinition1 = TableDefinitionObjectMother.Create(
                SchemaGenerationFirstStorageProviderDefinition,
                new EntityNameDefinition("SchemaName", "TableName1"));
            _tableDefinition2 = TableDefinitionObjectMother.Create(
                SchemaGenerationFirstStorageProviderDefinition,
                new EntityNameDefinition(null, "TableName2"));

            _unionViewDefinition1 = UnionViewDefinitionObjectMother.Create(
                SchemaGenerationFirstStorageProviderDefinition,
                new EntityNameDefinition("SchemaName", "UnionView1"));
            _unionViewDefinition2 = UnionViewDefinitionObjectMother.Create(
                SchemaGenerationFirstStorageProviderDefinition,
                new EntityNameDefinition(null, "UnionView2"));

            _filterViewDefinition1 = FilterViewDefinitionObjectMother.Create(
                SchemaGenerationFirstStorageProviderDefinition,
                new EntityNameDefinition("SchemaName", "FilterView1"));
            _filterViewDefinition2 = FilterViewDefinitionObjectMother.Create(
                SchemaGenerationFirstStorageProviderDefinition,
                new EntityNameDefinition(null, "FilterView2"));

            _emptyViewDefinition1 = EmptyViewDefinitionObjectMother.Create(
                SchemaGenerationFirstStorageProviderDefinition,
                new EntityNameDefinition("SchemaName", "EmptyView1"));
            _emptyViewDefinition2 = EmptyViewDefinitionObjectMother.Create(
                SchemaGenerationFirstStorageProviderDefinition,
                new EntityNameDefinition(null, "EmptyView2"));

            _synonymWithCustomSchema  = new EntityNameDefinition("SynonymSchemaName", "Synonym1");
            _synonymWithDefaultSchema = new EntityNameDefinition(null, "Synonym2");
        }