public static IFileProvider Get <TContainer>( [NotNull] this IFileProviderSelector selector) { Check.NotNull(selector, nameof(selector)); return(selector.Get(FileContainerNameAttribute.GetContainerName <TContainer>())); }
public void Should_Select_Default_Provider_If_Not_Configured() { var container = _selector.Get <TestContainer3>(); Assert.True(container.GetType().IsAssignableTo(typeof(FakeFileProvider1))); }