public JsonViewsProvider(IMetadataFolderProvider metadataFolderProvider)
        {
            Preconditions.ThrowIfNull(metadataFolderProvider, nameof(metadataFolderProvider));

            _views = new Lazy <List <DatabaseView> >(
                () => Load <List <DatabaseView> >(
                    $@"{metadataFolderProvider.GetStandardMetadataFolder()}\DatabaseViews.generated.json"));
        }
Beispiel #2
0
        public JsonViewsProvider(IMetadataFolderProvider metadataFolderProvider)
        {
            Preconditions.ThrowIfNull(metadataFolderProvider, nameof(metadataFolderProvider));

            _views = new Lazy <List <AuthorizationDatabaseTable> >(
                () => Load <List <AuthorizationDatabaseTable> >(
                    Path.Combine(metadataFolderProvider.GetStandardMetadataFolder(), "DatabaseViews.generated.json")));
        }
Beispiel #3
0
 public void Should_have_a_valid_resolved_standard_metadata_directory()
 => Directory.Exists(_metadataFolderProvider.GetStandardMetadataFolder())
 .ShouldBeTrue();