public void Ensure_a_list_of_5_scripts_are_returned_given_a_job_configuration_is_enabled_and_with_1_step_and_1_schedule()
        {
            var jobConfiguration = CreateJobConfiguration();

            var builder = new SqlScriptProvider(new JobConfigurationParser());
            var scripts = builder.Build(jobConfiguration);

            Assert.That(scripts != null);
            Assert.That(scripts.Count(), Is.EqualTo(5));
        }
        public void Ensure_the_list_of_scripts_for_a_job_configuration_are_in_the_correct_order()
        {
            var jobConfiguration = CreateJobConfiguration();

            var builder = new SqlScriptProvider(new JobConfigurationParser());
            var scripts = builder.Build(jobConfiguration).ToList();

            Assert.That(scripts[0].Name, Is.EqualTo("1 - Drop Job"));
            Assert.That(scripts[1].Name, Is.EqualTo("2 - Create Job"));
            Assert.That(scripts[2].Name, Is.EqualTo("3 - Create Schedule"));
            Assert.That(scripts[3].Name, Is.EqualTo("4 - Create Step"));
            Assert.That(scripts[4].Name, Is.EqualTo("5 - Enable Job"));
        }