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 scriptContentsWithParameters = "TEST SCRIPT ParameterValue $(escaped_parameter) $(missing_parameter)";
            var          expression = new ExecuteSqlScriptExpression()
            {
                SqlScript  = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TestScriptWithParameters.sql"),
                Parameters = new Dictionary <string, string> {
                    { "parameter", "ParameterValue" }
                }
            };

            var processor = new Mock <IMigrationProcessor>();

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

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