Remove a bunch of template related, unreferenced methods from file service and template repository (#9876)

This commit is contained in:
Kenn Jacobsen
2021-04-27 09:59:51 +02:00
committed by GitHub
parent c9ebaadf23
commit 720e529474
5 changed files with 2 additions and 240 deletions

View File

@@ -374,13 +374,10 @@ namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repos
// Act
IEnumerable<ITemplate> childrenById = repository.GetChildren(created[1].Id);
IEnumerable<ITemplate> childrenByAlias = repository.GetChildren(created[1].Alias);
// Assert
Assert.AreEqual(2, childrenById.Count());
Assert.AreEqual(2, childrenById.DistinctBy(x => x.Id).Count());
Assert.AreEqual(2, childrenByAlias.Count());
Assert.AreEqual(2, childrenByAlias.DistinctBy(x => x.Id).Count());
}
}
@@ -418,14 +415,10 @@ namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repos
// Act
IEnumerable<ITemplate> descendantsById = repository.GetDescendants(created[1].Id);
IEnumerable<ITemplate> descendantsByAlias = repository.GetDescendants(created[1].Alias);
// Assert
Assert.AreEqual(3, descendantsById.Count());
Assert.AreEqual(3, descendantsById.DistinctBy(x => x.Id).Count());
Assert.AreEqual(3, descendantsByAlias.Count());
Assert.AreEqual(3, descendantsByAlias.DistinctBy(x => x.Id).Count());
}
}