/// <summary> /// The Default Creation method make an in memory model if the drive root is empty. /// </summary> /// <param name="driveRoot"></param> /// <returns></returns> private static ITreeStorePersistence CreateLiteDbPersistenceFromPath(string driveRoot) => string.IsNullOrEmpty(driveRoot) ? TreeStoreLiteDbPersistence.InMemory(TreeStoreMessageBus.Default) : TreeStoreLiteDbPersistence.InFile(TreeStoreMessageBus.Default, $"FileName={driveRoot};Mode=Shared");
public KosmographLiteDbPersistenceTest() { this.kosmographMessaging = this.mocks.Create <ITreeStoreMessageBus>(); this.kosmographPersistence = TreeStoreLiteDbPersistence.InMemory(this.kosmographMessaging.Object); }