public void ExecutesTheStatement()
        {
            var expression = new ExecuteSqlScriptExpression { SqlScript = testSqlScript };

            var processor = new Mock<IMigrationProcessor>();
            processor.Setup(x => x.Execute(scriptContents)).Verifiable();

            expression.ExecuteWith(processor.Object);
            processor.Verify();
        }
        public void ExecutesTheStatementWithParameters()
        {
            const string scriptContents = "TEST SCRIPT ParameterValue $(escaped_parameter)";
            var expression = new ExecuteSqlScriptExpression
            {
                SqlScript = "testscript-withparameters.sql",
                Parameters = new Dictionary<string, string> {{"parameter", "ParameterValue"}}
            };

            var processor = new Mock<IMigrationProcessor>();

            processor.Setup(x => x.Execute(scriptContents)).Verifiable();

            expression.ExecuteWith(processor.Object);
            processor.Verify();
        }