public WebHookReceiverTfs(SyncSystemBusinessService syncSystemBusinessService,
                           MasterBusinessService masterBusinessService, CommonBusinessService commonBusinessService,
                           SyncSystemFieldMappingBusinessService syncSystemFieldMappingBusinessService, Logger logger)
 {
     this.logger = logger;
     this.syncSystemBusinessService             = syncSystemBusinessService;
     this.masterBusinessService                 = masterBusinessService;
     this.commonBusinessService                 = commonBusinessService;
     this.syncSystemFieldMappingBusinessService = syncSystemFieldMappingBusinessService;
 }
Пример #2
0
 public BaseController()
 {
     //ProjectServerSystemLinkBusinessService = new ProjectServerSystemLinkBusinessService();
     Logger                    = LogManager.GetCurrentClassLogger();
     IsDebugMode               = Parse(ConfigurationManager.AppSettings["IsDebugMode"]);
     UnitOfWork                = new UnitOfWork();
     CommonBusinessService     = new CommonBusinessService(UnitOfWork);
     MasterBusinessService     = new MasterBusinessService(UnitOfWork);
     SyncSystemBusinessService = new SyncSystemBusinessService(UnitOfWork);
     ProjectServerSystemLinkBusinessService = AutofacDependencyResolver.Current
                                              .ApplicationContainer.Resolve <ProjectServerSystemLinkBusinessService>();
     SyncSystemFieldMappingBusinessService = new SyncSystemFieldMappingBusinessService(UnitOfWork);
     MasterWorklogBusinessService          = new MasterWorklogBusinessService(UnitOfWork);
 }
 public ExecuteTfs(UnitOfWork unitOfWork)
 {
     syncSystemBusinessService             = new SyncSystemBusinessService(unitOfWork);
     commonBusinessService                 = new CommonBusinessService(unitOfWork);
     syncSystemFieldMappingBusinessService = new SyncSystemFieldMappingBusinessService(unitOfWork);
 }