Inheritance: R.Scheduler.Core.BaseJobsImpController
        public void CreateNewJobShouldReturnInvalidResponseWhenCallbackUrlIsMissing()
        {
            // Arrange
            var controller = new DirectoryScanJobsController();
            var model = new DirectoryScanJob();
            model.JobName = "TestJob";

            // Act 
            var result = controller.Post(model);

            // Assert
            Assert.False(result.Valid);
        }
        public void CreateNewJobShouldReturnValidResponseWhenCallbackUrlIsValid()
        {
            // Arrange
            var controller = new DirectoryScanJobsController();
            var model = new DirectoryScanJob();
            model.JobName = "TestJob";
            model.CallbackUrl = "http://valid.com/test/";

            // Act 
            var result = controller.Post(model);

            // Assert
            Assert.True(result.Valid);
        }