Exemple #1
0
        protected JobViewModel NewJobViewModel(Action <JobViewModelBuilder> setUp = null)
        {
            JobViewModelBuilder jobViewModelBuilder = new JobViewModelBuilder();

            setUp?.Invoke(jobViewModelBuilder);

            return(jobViewModelBuilder.Build());
        }
Exemple #2
0
        private void AndRetrieveJobAndCheckCanBeProcessedSuccessfully(Action <JobViewModelBuilder> setUp = null)
        {
            JobViewModelBuilder jobViewModelBuilder = new JobViewModelBuilder();

            setUp?.Invoke(jobViewModelBuilder);

            _job = jobViewModelBuilder.Build();

            _jobManagement.RetrieveJobAndCheckCanBeProcessed(_jobId)
            .Returns(_job);
        }
Exemple #3
0
 public JobsController(JobViewModelBuilder jobViewModelBuilder)
 {
     this.jobViewModelBuilder = jobViewModelBuilder;
 }