public MyAppClient(ICouchContext couchContext, DBConfig dBConfig, IAPILaoKYC apiLao) { this.couchContext = couchContext; this.dBConfig = dBConfig; this.apiLao = apiLao; couchDbHelper = new CouchDBHelper(dBConfig.Scheme, dBConfig.SrvAddr, "appclient", dBConfig.Username, dBConfig.Password); }
public MyAppsController(ILogger <MyAppsController> logger, DBConfig dBConf) { _logger = logger; this.couchContext = new CouchContext(); this.dBConfig = dBConf; apiKYC = new APILaoKYC(); myAppClient = new MyAppClient(couchContext, dBConfig, apiKYC); }
public MyResource() { this.couchContext = new CouchContext(); this.dBConfig = new DBConfig() { Password = "******", Port = 5984, Scheme = "http", SrvAddr = "127.0.0.1", Username = "******" }; apiKYC = new APILaoKYC(); myAPIResouce = new MyAPIResource(couchContext, dBConfig, apiKYC); }