public void ZeroPrimary_OneSecondary() { using (IScarfContext context = ScarfLogging.BeginInlineContext()) { ScarfLogging.Debug("Hello world!"); context.Commit(); } Assert.AreEqual(1, dataSource.Messages.Count); }
public void DebugMessage() { using (IScarfContext context = ScarfLogging.BeginInlineContext()) { ScarfLogging.Debug("Testing"); ScarfLogging.Debug("Testing 123"); context.Commit(); } Assert.AreEqual(2, dataSource.Messages.Count); }
public void OnePrimary_OneSecondary() { using (IScarfContext context = ScarfLogging.BeginInlineContext()) { context.CreateMessage(MessageClass.Access, MessageType.AccessRead); ScarfLogging.Debug("Hello world!"); context.Commit(); } Assert.AreEqual(2, dataSource.Messages.Count); }
public ActionResult About() { ScarfLogging.Debug("You are now in About()!!"); return(View()); }