Beispiel #1
0
        public async Task Setup()
        {
            var configuration = new ConfigurationBuilder()
                                .AddJsonFile("appsettings.json", true, true)
                                .Build();

            configuration.GetSection("OskSettings").Bind(_oskSettings);

            _mongoUtils         = new MongoUtils(_oskSettings);
            _addStatisticsGrain = new MongoManageStatisticsGrain <TestModel>(_mongoUtils);
            _getStatisticsGrain = new MongoGetStatisticsGrain <TestModel>(_mongoUtils, new NLogLogger());
            _grainsContext      = new GenericGrainsContext();
            _logger             = new NLogLogger();
            _executiveGrain     = new GenericExecutiveGrain(new MemoryAssemblyMembersCache(new MemoryAssemblyCache()), _logger);
            //var clt = new ClientStartup();
            //var client = await clt.StartClientWithRetries();
            //_grainsExecutivePool = new GrainsExecutivePool(client, 10);
            await FillData();
        }
Beispiel #2
0
 public RemoteExecutionTest(IOskRemoteExecutionContext context)
 => Context = context;