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); }
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); }