示例#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;
 }
示例#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;
 }