コード例 #1
0
        public void ShouldBeAbleToHandleCandidateFeedbackMessage()
        {
            // Act.
            var command = new HelpDeskCommunicationCommand(null);

            // Assert.
            command.CanHandle(_communicationRequest).Should().BeTrue();
        }
コード例 #2
0
        public void ShouldBeUnableToHandleOtherTypeOfMessage(MessageTypes messageType)
        {
            // Arrange.
            var communicationRequest = new CommunicationRequest
            {
                MessageType = messageType
            };

            var command = new HelpDeskCommunicationCommand(null);

            // Act.
            var canHandle = command.CanHandle(communicationRequest);

            // Assert.
            canHandle.Should().BeFalse();
        }