Beispiel #1
0
        private static JobViewModel NewJobViewModel(Action <JobViewModelBuilder> setup = null)
        {
            JobViewModelBuilder jobViewModelBuilder = new JobViewModelBuilder();

            setup?.Invoke(jobViewModelBuilder);

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

            setUp?.Invoke(jobViewModelBuilder);

            _job = jobViewModelBuilder.Build();

            _jobs.RetrieveJobAndCheckCanBeProcessed(_jobId)
            .Throws(new JobAlreadyCompletedException(string.Empty, _job));
        }
Beispiel #3
0
        private void GivenTheJobForTheJobId(Action <JobViewModelBuilder> setUp = null)
        {
            JobViewModelBuilder jobViewModelBuilder = new JobViewModelBuilder();

            setUp?.Invoke(jobViewModelBuilder);

            _job = jobViewModelBuilder.Build();

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