public InvestigateCodeViewModel(ICodeInspectService codeInspectService, IEventAggregator eventAggregator)
        {
            this.GetIssuesButtonText = GET_ISSUES_TEXT;
            this.codeInspectService = codeInspectService;

            ReportCreatedEvent reportCreatedEvent = eventAggregator.GetEvent<ReportCreatedEvent>();
            reportCreatedEvent.Subscribe(OnReportCreated);
        }
예제 #2
0
        public InvestigateCodeViewModel(ICodeInspectService codeInspectService, IEventAggregator eventAggregator)
        {
            this.GetIssuesButtonText = GET_ISSUES_TEXT;
            this.codeInspectService  = codeInspectService;

            ReportCreatedEvent reportCreatedEvent = eventAggregator.GetEvent <ReportCreatedEvent>();

            reportCreatedEvent.Subscribe(OnReportCreated);
        }