TestFileProvider Class
Namespace
Statiq.Testing
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IFileProvider"] click Interface0 "/api/Statiq.Common/IFileProvider" Type-.->Interface1["IEnumerable<NormalizedPath>"] Type-.->Interface2["IEnumerable"] Type["TestFileProvider"] class Type type-node

Syntax

public class TestFileProvider : IFileProvider, IEnumerable<NormalizedPath>, IEnumerable

Constructors

Properties

Name Property Type Summary
Directories ICollection<NormalizedPath>
Files ConcurrentDictionary<NormalizedPath, StringBuilder>
FileSystem IReadOnlyFileSystem

Methods

Extension Methods

Name Value Summary
Concat<NormalizedPath>(NormalizedPath) IEnumerable<T>
GetNext<NormalizedPath>(NormalizedPath, IEqualityComparer<NormalizedPath>) T
GetNext<NormalizedPath>(NormalizedPath) T
GetPrevious<NormalizedPath>(NormalizedPath, IEqualityComparer<NormalizedPath>) T
GetPrevious<NormalizedPath>(NormalizedPath) T
GroupByMany<NormalizedPath, TKey, TElement>(Func<NormalizedPath, IEnumerable<TKey>>, Func<NormalizedPath, TElement>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
GroupByMany<NormalizedPath, TKey, TElement>(Func<NormalizedPath, IEnumerable<TKey>>, Func<NormalizedPath, TElement>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function.
GroupByMany<NormalizedPath, TKey>(Func<NormalizedPath, IEnumerable<TKey>>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TSource>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and compares the keys by using a specified comparer.
GroupByMany<NormalizedPath, TKey>(Func<NormalizedPath, IEnumerable<TKey>>) IEnumerable<IGrouping<TKey, TSource>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys.
GroupByManyToMany<NormalizedPath, TKey, TElement>(Func<NormalizedPath, IEnumerable<TKey>>, Func<NormalizedPath, IEnumerable<TElement>>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function that returns a sequence of elements.
GroupByManyToMany<NormalizedPath, TKey, TElement>(Func<NormalizedPath, IEnumerable<TKey>>, Func<NormalizedPath, IEnumerable<TElement>>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function that returns a sequence of elements.
ParallelForEachAsync<NormalizedPath>(Func<NormalizedPath, Task>, CancellationToken) Task
ParallelSelectAsync<NormalizedPath, TResult>(Func<NormalizedPath, Task<TResult>>, CancellationToken) Task<IEnumerable<TResult>>
Invokes an async selector in parallel.
ParallelSelectManyAsync<NormalizedPath, TResult>(Func<NormalizedPath, Task<IEnumerable<TResult>>>, CancellationToken) Task<IEnumerable<TResult>>
Invokes an async selector that returns multiple results in parallel.
ParallelWhereAsync<NormalizedPath>(Func<NormalizedPath, Task<bool>>, CancellationToken) Task<IEnumerable<TSource>>
StartsWith<NormalizedPath>(IEnumerable<NormalizedPath>, IEqualityComparer<NormalizedPath>) bool
Determines whether the items starts with the specified values.
StartsWith<NormalizedPath>(IEnumerable<NormalizedPath>) bool
Determines whether the items starts with the specified values.
ThrowIfNull<TestFileProvider>(string) T
ToDocument<TestFileProvider>(IContentProvider) IDocument
ToDocument<TestFileProvider>(IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<TestFileProvider>(NormalizedPath, IContentProvider) IDocument
ToDocument<TestFileProvider>(NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<TestFileProvider>(NormalizedPath, NormalizedPath, IContentProvider) IDocument
ToDocument<TestFileProvider>(NormalizedPath, NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocuments<NormalizedPath>(Func<NormalizedPath, IContentProvider>) IEnumerable<IDocument>
ToDocuments<NormalizedPath>(Func<NormalizedPath, IEnumerable<KeyValuePair<string, object>>>, Func<NormalizedPath, IContentProvider>) IEnumerable<IDocument>
ToDocuments<NormalizedPath>(Func<NormalizedPath, NormalizedPath>, Func<NormalizedPath, IContentProvider>) IEnumerable<IDocument>
ToDocuments<NormalizedPath>(Func<NormalizedPath, NormalizedPath>, Func<NormalizedPath, IEnumerable<KeyValuePair<string, object>>>, Func<NormalizedPath, IContentProvider>) IEnumerable<IDocument>
ToDocuments<NormalizedPath>(Func<NormalizedPath, NormalizedPath>, Func<NormalizedPath, NormalizedPath>, Func<NormalizedPath, IContentProvider>) IEnumerable<IDocument>
ToDocuments<NormalizedPath>(Func<NormalizedPath, NormalizedPath>, Func<NormalizedPath, NormalizedPath>, Func<NormalizedPath, IEnumerable<KeyValuePair<string, object>>>, Func<NormalizedPath, IContentProvider>) IEnumerable<IDocument>
ToLookupMany<NormalizedPath, TKey, TElement>(Func<NormalizedPath, IEnumerable<TKey>>, Func<NormalizedPath, TElement>, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
ToLookupMany<NormalizedPath, TKey, TElement>(Func<NormalizedPath, IEnumerable<TKey>>, Func<NormalizedPath, TElement>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function.
ToLookupMany<NormalizedPath, TKey>(Func<NormalizedPath, IEnumerable<TKey>>, IEqualityComparer<TKey>) ILookup<TKey, TSource>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and compares the keys by using a specified comparer.
ToLookupMany<NormalizedPath, TKey>(Func<NormalizedPath, IEnumerable<TKey>>) ILookup<TKey, TSource>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys.
ToLookupManyToMany<NormalizedPath, TKey, TElement>(Func<NormalizedPath, IEnumerable<TKey>>, Func<NormalizedPath, IEnumerable<TElement>>, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function that returns a sequence of elements.
ToLookupManyToMany<NormalizedPath, TKey, TElement>(Func<NormalizedPath, IEnumerable<TKey>>, Func<NormalizedPath, IEnumerable<TElement>>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function that returns a sequence of elements.
ToStringTable<NormalizedPath>(string[], Func<NormalizedPath, object>[]) string