public TableScriptBuilder(ITableScriptElementFactory elementFactory, ICommentScriptElementFactory commentFactory)
        {
            ArgumentUtility.CheckNotNull("elementFactory", elementFactory);
            ArgumentUtility.CheckNotNull("commentFactory", commentFactory);

            _elementFactory       = elementFactory;
            _createScriptElements = new ScriptElementCollection();
            _createScriptElements.AddElement(commentFactory.GetCommentElement("Create all tables"));
            _dropScriptElements = new ScriptElementCollection();
            _dropScriptElements.AddElement(commentFactory.GetCommentElement("Drop all tables"));
        }
        public override void SetUp()
        {
            base.SetUp();

            _tableScriptfactoryStub = MockRepository.GenerateStub <ITableScriptElementFactory>();
            _builder = new TableScriptBuilder(_tableScriptfactoryStub, new SqlCommentScriptElementFactory());

            _tableDefinition1 = TableDefinitionObjectMother.Create(SchemaGenerationFirstStorageProviderDefinition);
            _tableDefinition2 = TableDefinitionObjectMother.Create(SchemaGenerationFirstStorageProviderDefinition);
            _tableDefinition3 = TableDefinitionObjectMother.Create(SchemaGenerationFirstStorageProviderDefinition);

            _fakeElement1 = MockRepository.GenerateStub <IScriptElement>();
            _fakeElement2 = MockRepository.GenerateStub <IScriptElement>();
            _fakeElement3 = MockRepository.GenerateStub <IScriptElement>();
        }