public void Filter(string nameFilter)
        {
            var repository = new UserProfileRepository(_dbContext, _cache.Object, _logger.Object);
            var pagedItems = repository.Filter(1, 20, new OrderBySelector <UserProfile, string>(OrderByType.Ascending, u => u.FirstName),
                                               f => f.FirstName.Contains(nameFilter) || f.LastName.Contains(nameFilter));

            Assert.NotEmpty(pagedItems.Items);
            Assert.True(pagedItems.Items.TrueForAll(f => f.FirstName.Contains(nameFilter) || f.LastName.Contains(nameFilter)));
        }