public void AddFileSystemQueryStorage_2_Services_Is_Null()
        {
            // arrange
            // act
            Action action = () =>
                            FileSystemQueryStorageServiceCollectionExtensions
                            .AddFileSystemQueryStorage(null);

            Assert.Throws <ArgumentNullException>(action);
        }
        public void AddReadOnlyFileSystemQueryStorage_1_Services_Is_Null()
        {
            // arrange
            // act
            Action action = () =>
                            FileSystemQueryStorageServiceCollectionExtensions
                            .AddReadOnlyFileSystemQueryStorage(null, string.Empty);

            // assert
            Assert.Throws <ArgumentNullException>(action);
        }
        public void AddReadOnlyFileSystemQueryStorage_1_Directory_Is_Null()
        {
            // arrange
            var services = new ServiceCollection();

            // act
            Action action = () =>
                            FileSystemQueryStorageServiceCollectionExtensions
                            .AddReadOnlyFileSystemQueryStorage(services, null);

            // assert
            Assert.Throws <ArgumentNullException>(action);
        }
        public void AddFileSystemQueryStorage_2_Services()
        {
            // arrange
            var services = new ServiceCollection();

            // act
            FileSystemQueryStorageServiceCollectionExtensions
            .AddFileSystemQueryStorage(services);

            // assert
            services.ToDictionary(
                k => k.ServiceType.GetTypeName(),
                v => v.ImplementationType?.GetTypeName())
            .MatchSnapshot();
        }
        public void AddReadOnlyFileSystemQueryStorage_1_Services()
        {
            // arrange
            var services = new ServiceCollection();

            // act
            FileSystemQueryStorageServiceCollectionExtensions
            .AddReadOnlyFileSystemQueryStorage(services, "foo");

            // assert
            services.ToDictionary(
                k => k.ServiceType.GetTypeName(),
                v => v.ImplementationType?.GetTypeName())
            .OrderBy(t => t.Key)
            .MatchSnapshot();
        }