Exemplo n.º 1
0
        public AppTestContext(ICompositionRoot root)
        {
            this.root                 = root;
            this.appContext           = root.CreateContext();
            this.configurationManager = appContext.Resolve <IConfigurationManager>();
            this.cs = configurationManager.GetValue("csSqlDataStore");
            var dsProvider = appContext.Resolve <IDataStoreProvider>();

            this.dataStore = dsProvider.GetDataStore <ISqlDataStore>(cs);
        }
Exemplo n.º 2
0
 T IAppContext.Resolve <T>() => appContext.Resolve <T>();