Пример #1
0
 public ErrorReportViewModel()
 {
     //_exception = new ExceptionViewModel();
     //_summary = new SummaryViewModel();
     _exception = MockException();
     _summary = MockSummary();
     _messageText = MockMessageText();
 }
Пример #2
0
        private ExceptionViewModel MockException()
        {
            ExceptionViewModel model = new ExceptionViewModel();
            model.Exception = "at StackTrace.Program.GetValue() in C:\\DebuggingPresentation\\StackTrace\\StackTrace\\Program.cs:line 29\n" +
                              "at StackTrace.Program.Main(String[] args) in C:\\DebuggingPresentation\\StackTrace\\StackTrace\\Program.cs:line 15\n" +
                              "at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)\n" +
                              "at System.AppDomain.ExecuteAssembly(String assemblyFile,\n" +
                              "Evidence assemblySecurity, String[] args)\n" +
                              "at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\n" +
                              "at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\n" +
                              "at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\n" +
                              "at System.Threading.ThreadHelper.ThreadStart()";

            return model;
        }