protected JobViewModel NewJobViewModel(Action <JobViewModelBuilder> setUp = null) { JobViewModelBuilder jobViewModelBuilder = new JobViewModelBuilder(); setUp?.Invoke(jobViewModelBuilder); return(jobViewModelBuilder.Build()); }
private void AndRetrieveJobAndCheckCanBeProcessedSuccessfully(Action <JobViewModelBuilder> setUp = null) { JobViewModelBuilder jobViewModelBuilder = new JobViewModelBuilder(); setUp?.Invoke(jobViewModelBuilder); _job = jobViewModelBuilder.Build(); _jobManagement.RetrieveJobAndCheckCanBeProcessed(_jobId) .Returns(_job); }