Example #1
0
        public AppsHostTests()
        {
            var loggerFactory = new Mock <ILoggerFactory>();

            loggerFactory.Setup(x => x.CreateLogger(typeof(AppsHost).FullName)).Returns(new Mock <ILogger>().Object);
            this.appsHost = new AppsHost(loggerFactory.Object);
        }
Example #2
0
 public AppsFeature(ILoggerFactory loggerFactory, IAppsStore appsStore, IAppsHost appsHost, DataFolder dataFolder)
 {
     this.appsStore  = appsStore;
     this.appsHost   = appsHost;
     this.dataFolder = dataFolder;
     this.logger     = loggerFactory.CreateLogger(this.GetType().FullName);
 }
 public AppsFeature(ILoggerFactory loggerFactory, IAppsStore appsStore, IAppsHost appsHost, DataFolder dataFolder)
 {
     this.appsStore  = appsStore;
     this.appsHost   = appsHost;
     this.dataFolder = dataFolder;
     this.logger     = loggerFactory.CreateLogger("Impleum.Bitcoin.Fullnode");
 }