Пример #1
0
        protected JobViewModel NewJobViewModel(Action <JobViewModelBuilder> setUp = null)
        {
            JobViewModelBuilder jobViewModelBuilder = new JobViewModelBuilder();

            setUp?.Invoke(jobViewModelBuilder);

            return(jobViewModelBuilder.Build());
        }
Пример #2
0
        private void AndRetrieveJobAndCheckCanBeProcessedSuccessfully(Action <JobViewModelBuilder> setUp = null)
        {
            JobViewModelBuilder jobViewModelBuilder = new JobViewModelBuilder();

            setUp?.Invoke(jobViewModelBuilder);

            _job = jobViewModelBuilder.Build();

            _jobManagement.RetrieveJobAndCheckCanBeProcessed(_jobId)
            .Returns(_job);
        }