public async void BucketId_Update_Valid_Reference()
        {
            Mock <IFileRepository> fileRepository = new Mock <IFileRepository>();

            fileRepository.Setup(x => x.BucketByBucketId(It.IsAny <int>())).Returns(Task.FromResult <Bucket>(new Bucket()));

            var validator = new ApiFileServerRequestModelValidator(fileRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiFileServerRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.BucketId, 1);
        }
        public async void FileTypeId_Create_Valid_Reference()
        {
            Mock <IFileRepository> fileRepository = new Mock <IFileRepository>();

            fileRepository.Setup(x => x.FileTypeByFileTypeId(It.IsAny <int>())).Returns(Task.FromResult <FileType>(new FileType()));

            var validator = new ApiFileServerRequestModelValidator(fileRepository.Object);
            await validator.ValidateCreateAsync(new ApiFileServerRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.FileTypeId, 1);
        }