public async void SenderUserId_Create_Valid_Reference()
        {
            Mock <IMessageRepository> messageRepository = new Mock <IMessageRepository>();

            messageRepository.Setup(x => x.UserBySenderUserId(It.IsAny <int>())).Returns(Task.FromResult <User>(new User()));

            var validator = new ApiMessageServerRequestModelValidator(messageRepository.Object);
            await validator.ValidateCreateAsync(new ApiMessageServerRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.SenderUserId, 1);
        }
        public async void Content_Create_length()
        {
            Mock <IMessageRepository> messageRepository = new Mock <IMessageRepository>();

            messageRepository.Setup(x => x.Get(It.IsAny <int>())).Returns(Task.FromResult(new Message()));

            var validator = new ApiMessageServerRequestModelValidator(messageRepository.Object);
            await validator.ValidateCreateAsync(new ApiMessageServerRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.Content, new string('A', 129));
        }