Esempio n. 1
0
        public void Validate_ValidCommand_ShouldBeTrue()
        {
            var command = new DeleteChannelConversationCommand
            {
                ConversationId = Guid.NewGuid().ToString()
            };

            var validator = new DeleteChannelConversationCommandValidator();

            var result = validator.Validate(command);

            result.IsValid.ShouldBe(true);
        }
Esempio n. 2
0
        public void Validate_ConversationIdIsEmpty_ShouldBeFalse()
        {
            var command = new DeleteChannelConversationCommand
            {
                ConversationId = string.Empty
            };

            var validator = new DeleteChannelConversationCommandValidator();

            var result = validator.Validate(command);

            result.IsValid.ShouldBe(false);
        }