public void GetPaginationPhotos_EmptyContainerOfPhotos_ThrowInvalidOperationException()
        {
            var authServiceMock = new Mock <IAuthService>();
            var dataServiceMock = new Mock <IDataService>();

            var paginationPhotosRequestDto = new PaginationPhotosRequestDto()
            {
                PageNumber = 2, PageSize = 10
            };

            dataServiceMock.Setup(u => u.GetPaginationPhotos((paginationPhotosRequestDto.PageNumber - 1) * paginationPhotosRequestDto.PageSize,
                                                             paginationPhotosRequestDto.PageSize))
            .Throws(new InvalidDataException("Photos don`t exist."));

            var controller = new PhotosController(dataServiceMock.Object, authServiceMock.Object);

            var result = controller.GetPaginationPhotos(paginationPhotosRequestDto);

            var statusCode = ((BadRequestObjectResult)result).StatusCode;
            var jsonValue  = JsonConvert.SerializeObject(((BadRequestObjectResult)result).Value);
            var dictionary = JsonConvert.DeserializeObject <Dictionary <object, object> >(jsonValue);

            Assert.True(statusCode == 400);
            Assert.Equal("Photos don`t exist.", dictionary["Message"]);

            dataServiceMock.VerifyAll();
        }