/// <summary>
        /// create an instance of hte <see cref="AreaRoutingDetailStore"/>
        /// </summary>
        /// <param name="paths">the storage paths (provider)</param>
        /// <param name="store">the document store</param>
        public AreaRoutingDetailStore(
            IProvideStoragePaths paths,
            IStoreDocuments store)
        {
            It.IsNull(paths)
            .AsGuard <ArgumentNullException>(nameof(paths));
            It.IsNull(store)
            .AsGuard <ArgumentNullException>(nameof(store));

            StoragePaths  = paths;
            DocumentStore = store;
        }
Exemplo n.º 2
0
        /// <summary>
        /// create an instance of hte <see cref="LocalAuthorityStore"/>
        /// </summary>
        /// <param name="paths">the storage paths (provider)</param>
        /// <param name="store">the document store</param>
        public LocalAuthorityStore(
            IProvideStoragePaths paths,
            IStoreDocuments store)
        {
            It.IsNull(paths)
            .AsGuard <ArgumentNullException>(nameof(paths));
            It.IsNull(store)
            .AsGuard <ArgumentNullException>(nameof(store));

            StoragePaths  = paths;
            DocumentStore = store;
        }
Exemplo n.º 3
0
 /// <summary>
 /// make (a) 'system under test'
 /// </summary>
 /// <param name="paths">the storage paths provider</param>
 /// <param name="store">the document store</param>
 /// <returns>the system under test</returns>
 internal AreaRoutingDetailStore MakeSUT(
     IProvideStoragePaths paths,
     IStoreDocuments store) =>
 new AreaRoutingDetailStore(paths, store);
 /// <summary>
 /// make (a) 'system under test'
 /// </summary>
 /// <param name="paths">the storage paths provider</param>
 /// <param name="store">the document store</param>
 /// <returns>the system under test</returns>
 internal LocalAuthorityStore MakeSUT(
     IProvideStoragePaths paths,
     IStoreDocuments store) =>
 new LocalAuthorityStore(paths, store);