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; }
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; }