public async Task Will_Return_Page_Of_Templates_Preserving_Tenant_Context()
        {
            _tenantIdProvider.Setup(x => x.TenantId).Returns(Tenant1Id).Verifiable();
            var expectedEntities = _templates.Where(x => x.TenantId == Tenant1Id);

            var page = await _repository.GetTemplatesPage(1, 2);

            page.Entities.Count.Should().Be(2);
            page.Entities.Should().BeEquivalentTo(expectedEntities.Take(2));
            page.TotalCount.Should().Be(4);

            page = await _repository.GetTemplatesPage(2, 2);

            page.Entities.Count.Should().Be(2);
            page.Entities.Should().BeEquivalentTo(expectedEntities.Skip(2).Take(2));
            page.TotalCount.Should().Be(4);
        }