public void GivenMailboxStarted_ShouldInvokeMailboxStarted() { var mailboxHandler = new TestMailboxHandler(); var userMailbox = new UnboundedMailboxQueue(); var systemMessages = new UnboundedMailboxQueue(); var mailboxStatistics = new TestMailboxStatistics(); var mailbox = new DefaultMailbox(systemMessages, userMailbox, mailboxStatistics); mailbox.RegisterHandlers(mailboxHandler, mailboxHandler); mailbox.Start(); Assert.Contains("Started", mailboxStatistics.Stats); }
public void GivenMailboxStarted_ShouldInvokeMailboxStarted() { _mailbox.Start(); Assert.Contains("Started", _mailboxStatistics.Stats); }