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

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

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

            reportCreatedEvent.Subscribe(OnReportCreated);
        }