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

            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 AddReadOnlyFileSystemQueryStorage_2_Services()
        {
            // arrange
            var services = new ServiceCollection();

            // act
            FileSystemQueryStorageServiceCollectionExtensions
            .AddReadOnlyFileSystemQueryStorage(services);

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