public static DeploymentTask SequenceTaskFailInTheMiddle(IPublisher publisher) { var context = CreateContext("TaskFailInTheMiddle", publisher); var task = new DeploymentTask(context); task.Add(new FakeOpSuccess()); task.Add(new FakeOpFail()); task.Add(new FakeOpSuccess()); return(task); }
public static DeploymentTask SequenceTaskSuccess(IMediator mediator) { var context = CreateContext("TaskSuccess", mediator); var task = new DeploymentTask(context); task.Add(new FakeOpSuccess()); return(task); }