Ejemplo n.º 1
0
 public OrchestrationTestHost()
 {
     dataConverter = new JsonDataConverter();
     orchestrationObjectManager = new NameVersionObjectManager <TaskOrchestration>();
     activityObjectManager      = new NameVersionObjectManager <TaskActivity>();
     orchestrationExecutor      = new FakeOrchestrationExecutor(orchestrationObjectManager);
     taskActivityExecutor       = new FakeTaskActivityExecutor(activityObjectManager);
     clock = new FakeOrchestrationClock();
     ClockSpeedUpFactor = 1;
 }
Ejemplo n.º 2
0
 public FakeOrchestrationContext(TaskScheduler scheduler, OrchestrationInstance instance,
                                 FakeTaskActivityExecutor taskActivityExecutor,
                                 FakeOrchestrationExecutor orchestrationExecutor, FakeOrchestrationClock clock)
 {
     IsReplaying           = false;
     this.scheduler        = scheduler;
     OrchestrationInstance = instance;
     TaskActivityExecutor  = taskActivityExecutor;
     OrchestrationExecutor = orchestrationExecutor;
     Clock = clock;
 }