Beispiel #1
0
 public void Publish(string message)
 {
     if (_validationService.ValidateMessage(message))
     {
         _queuePublishRepo.PublishMessage(ConvertNameToPhrase(message));
         Console.WriteLine($"Name: {message} sent to Rabbit");
     }
     else
     {
         Console.WriteLine("Please enter a name.");
     }
 }
Beispiel #2
0
 public void TestQueuePublishSuccessful()
 {
     Assert.True(queueRepo.PublishMessage("Test Message"));
 }