Esempio n. 1
0
        public void DoFirstHandler_WithValidMessage_ReturnsTrue()
        {
            // Arrange
            var message = new Message
            {
                Body = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(@"{'Name':'James'}"))
            };

            // Act
            bool result = eventAgregator.DoFirstHandler(message);

            // Assert
            result.Should().BeTrue();
        }