Esempio n. 1
0
 public TestKitSilo()
 {
     GrainFactory          = new TestGrainFactory(Options);
     ServiceProvider       = new TestServiceProvider(Options);
     StorageManager        = new StorageManager(Options);
     TimerRegistry         = new TestTimerRegistry();
     ReminderRegistry      = new TestReminderRegistry();
     StreamProviderManager = new TestStreamProviderManager(Options);
     ServiceProvider.AddService <IKeyedServiceCollection <string, IStreamProvider> >(StreamProviderManager);
     _grainRuntime = new TestGrainRuntime(GrainFactory, TimerRegistry, ReminderRegistry, ServiceProvider, StorageManager);
     _grainCreator = new TestGrainCreator(_grainRuntime, ServiceProvider);
 }
        public TestKitSilo()
        {
            _grainFactory = new TestGrainFactory(Options);

            _serviceProvider = new TestServiceProvider(Options);

            _timerRegistry = new TestTimerRegistry();

            _streamProviderManager = new TestStreamProviderManager(Options);

            _grainRuntime = new TestGrainRuntime(_grainFactory, _timerRegistry, _streamProviderManager);

            _grainCreator = new TestGrainCreator(_grainRuntime);
        }