public JsonViewsProvider(IMetadataFolderProvider metadataFolderProvider) { Preconditions.ThrowIfNull(metadataFolderProvider, nameof(metadataFolderProvider)); _views = new Lazy <List <DatabaseView> >( () => Load <List <DatabaseView> >( $@"{metadataFolderProvider.GetStandardMetadataFolder()}\DatabaseViews.generated.json")); }
public JsonViewsProvider(IMetadataFolderProvider metadataFolderProvider) { Preconditions.ThrowIfNull(metadataFolderProvider, nameof(metadataFolderProvider)); _views = new Lazy <List <AuthorizationDatabaseTable> >( () => Load <List <AuthorizationDatabaseTable> >( Path.Combine(metadataFolderProvider.GetStandardMetadataFolder(), "DatabaseViews.generated.json"))); }
public void Should_have_a_valid_resolved_standard_metadata_directory() => Directory.Exists(_metadataFolderProvider.GetStandardMetadataFolder()) .ShouldBeTrue();