Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public static DeploymentTask SequenceTaskSuccess(IMediator mediator)
        {
            var context = CreateContext("TaskSuccess", mediator);
            var task    = new DeploymentTask(context);

            task.Add(new FakeOpSuccess());
            return(task);
        }