public CrossChainCommunicationTestBase() { CrossChainCacheEntityProvider = GetRequiredService <ICrossChainCacheEntityProvider>(); BlockCacheEntityProducer = GetRequiredService <IBlockCacheEntityProducer>(); _grpcCrossChainClientProvider = GetRequiredService <ICrossChainClientProvider>(); _chainOptions = GetRequiredService <IOptionsSnapshot <ChainOptions> >().Value; }
public CrossChainTestBase() { CrossChainCacheEntityProvider = GetRequiredService <ICrossChainCacheEntityProvider>(); BlockCacheEntityProducer = GetRequiredService <IBlockCacheEntityProducer>(); _configOptions = GetRequiredService <IOptionsMonitor <CrossChainConfigOptions> >().CurrentValue; _chainOptions = GetRequiredService <IOptionsSnapshot <ChainOptions> >().Value; _configOptions.CrossChainDataValidationIgnored = false; }
public CrossChainCacheEntityService(ICrossChainCacheEntityProvider crossChainCacheEntityProvider) { _crossChainCacheEntityProvider = crossChainCacheEntityProvider; }
public CrossChainDataConsumerTest() { _blockCacheEntityConsumer = GetRequiredService <IBlockCacheEntityConsumer>(); _crossChainCacheEntityProvider = GetRequiredService <ICrossChainCacheEntityProvider>(); }
protected CrossChainWithChainTestBase() { _blockCacheEntityProducer = Application.ServiceProvider.GetRequiredService <IBlockCacheEntityProducer>(); _crossChainCacheEntityProvider = Application.ServiceProvider.GetRequiredService <ICrossChainCacheEntityProvider>(); }
public BlockCacheEntityProducer(ICrossChainCacheEntityProvider crossChainCacheEntityProvider) { _crossChainCacheEntityProvider = crossChainCacheEntityProvider; }
public ChainCacheEntityProviderTest() { _crossChainCacheEntityProvider = GetRequiredService <ICrossChainCacheEntityProvider>(); }