Ejemplo n.º 1
0
        public void TestInitialize()
        {
            m_serviceScope              = _testFactory.Server.Host.Services.CreateScope();
            m_transactionScope          = new TransactionScope();
            TestDataHelper.serviceScope = m_serviceScope;
            m_wcfClient             = GetInstance <IWcfClient>();
            m_configurationProvider = GetInstance <IWcfConfigurationProvider>();
            m_OrgUnitService        = GetInstance <IOrgUnitsService>();
            var config = GetInstance <IConfiguration>();

            TestdepId_1 = config.GetValue <long>("TestDepid1", 1);
            TestdepId_2 = config.GetValue <long>("TestDepid2", 22);
        }
 public OrgUnitsService(IWcfClient client, IWcfConfigurationProvider config, IMemoryCache cache)
 {
     m_wcfClient             = client;
     m_configurationProvider = config;
     m_cache = cache;
 }