Beispiel #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);
        }
Beispiel #2
0
 T IAppContext.Resolve <T>() => appContext.Resolve <T>();