Пример #1
0
 public DhtGrainLocatorTests(ITestOutputHelper output)
 {
     this.output              = output;
     this.loggerFactory       = new LoggerFactory(new[] { new XunitLoggerProvider(output) });
     this.rootContext         = new UnitTestSchedulingContext();
     this.taskScheduler       = TestInternalHelper.InitializeSchedulerForTesting(this.rootContext, this.loggerFactory);
     this.localGrainDirectory = new MockLocalGrainDirectory(
         TimeSpan.FromMilliseconds(100),
         TimeSpan.FromMilliseconds(200));
     this.target = new DhtGrainLocator(this.localGrainDirectory, this.taskScheduler, this.rootContext);
 }
Пример #2
0
 public DhtGrainLocatorTests(ITestOutputHelper output)
 {
     this.output        = output;
     this.loggerFactory = new LoggerFactory(new[] { new XunitLoggerProvider(output) });
     this.rootContext   = new UnitTestSchedulingContext()
     {
         Scheduler = SchedulingHelper.CreateWorkItemGroupForTesting(this.rootContext, this.loggerFactory)
     };
     this.localGrainDirectory = new MockLocalGrainDirectory(
         TimeSpan.FromMilliseconds(100),
         TimeSpan.FromMilliseconds(200));
     this.target = new DhtGrainLocator(this.localGrainDirectory, this.rootContext);
 }
Пример #3
0
 public DhtGrainLocatorTests(ITestOutputHelper output)
 {
     this.output = output;
     this.localGrainDirectory = new MockLocalGrainDirectory(TimeSpan.FromMilliseconds(100), TimeSpan.FromMilliseconds(200));
     this.target = new DhtGrainLocator(this.localGrainDirectory);
 }