public void TestMethod1() { var subscribeTask = new Task(ProcessMessagesFromQueue); subscribeTask.Start(); MessagePublisher.PublishApplicationMessage("test topic", "message"); }
public NotificationCollection SaveShift(Shift shift) { var result = repository.Save(shift); if (!result.HasErrors()) { MessagePublisher.PublishApplicationMessage(MessageTopics.ShiftUpdated, shift.Id); } return(result); }