public void ThrowArgumentNullException_WhenUserIdIsNull()
        {
            //Arrange
            var usersRepoMock        = new Mock <IEfRepository <RegularUser> >();
            var imagesRepoMock       = new Mock <IEfRepository <UploadedImage> >();
            var uowMock              = new Mock <IEfUnitOfWork>();
            var uploadedImageService = new Services.UploadedImageService(imagesRepoMock.Object, usersRepoMock.Object, uowMock.Object);

            //Act && Assert
            Assert.Throws <ArgumentNullException>(() => uploadedImageService.GetAllImagesByUser(null));
        }
        public void CallImagesRepoAllOnce_WhenValidIdIsPassed()
        {
            //Arrange
            var    usersRepoMock        = new Mock <IEfRepository <RegularUser> >();
            var    imagesRepoMock       = new Mock <IEfRepository <UploadedImage> >();
            var    uowMock              = new Mock <IEfUnitOfWork>();
            var    uploadedImageService = new Services.UploadedImageService(imagesRepoMock.Object, usersRepoMock.Object, uowMock.Object);
            string userId = "random";

            //Act
            uploadedImageService.GetAllImagesByUser(userId);

            //Assert
            imagesRepoMock.Verify(m => m.All(), Times.Once);
        }