コード例 #1
0
 public CrossChainServiceTest()
 {
     _crossChainService            = GetRequiredService <ICrossChainService>();
     _crossChainTestHelper         = GetRequiredService <CrossChainTestHelper>();
     _crossChainCacheEntityService = GetRequiredService <ICrossChainCacheEntityService>();
     _crossChainConfigOptions      = GetRequiredService <IOptions <CrossChainConfigOptions> >().Value;
 }
コード例 #2
0
 public CrossChainTestBase()
 {
     CrossChainCacheEntityProvider = GetRequiredService <ICrossChainCacheEntityProvider>();
     BlockCacheEntityProducer      = GetRequiredService <IBlockCacheEntityProducer>();
     _configOptions = GetRequiredService <IOptionsMonitor <CrossChainConfigOptions> >().CurrentValue;
     _chainOptions  = GetRequiredService <IOptionsSnapshot <ChainOptions> >().Value;
     _configOptions.CrossChainDataValidationIgnored = false;
 }