public void WinToTrelloTest() { _source = new WindowsFileRepository(@"D:\CodeProject\SyncFile\temp1"); _destination = new TrelloFileRepository( ConfigurationManager.AppSettings["key"], ConfigurationManager.AppSettings["token"], ConfigurationManager.AppSettings["list"] ); ISyncBusiness isyncbusiness = new SyncBusiness(_source, _destination); isyncbusiness.Sync(); }
static IFileRepository FileRepositoryFactory(NameValueCollection nvc) { IFileRepository result = null; switch (nvc["Type"]) { case "WindowsFileRepository": result = new WindowsFileRepository(nvc["BasePath"]); break; case "TrelloFileRepository": result = new TrelloFileRepository(nvc["Key"], nvc["Token"], nvc["List"]); break; } return(result); }