Esempio n. 1
0
 public void StackIsAbsent()
 {
     const string InternalErrorMessage = "An internal error has occurred!";
     Exception ex = new Exception(InternalErrorMessage, new Exception("Debug Info: " + Environment.NewLine + "Some debug information goes here..."));
     var ev = new Event(ex);
     var notice = new Notice("apikey", new Notifier(), ev);
     var json = JsonConvert.SerializeObject(notice);
     // should reach the end of function without any exception thrown
 }
Esempio n. 2
0
        public void Notify(IEnumerable<IEvent> events, bool useSSL)
        {
            var notice = new Notice(ApiKey, Notifier, events);

            BugsnagSender.Send(notice, useSSL);
        }