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