/// <summary> /// Creates an instance of <see cref="AltCmdSession"/> /// that refers to a new instance of <see cref="MemoryStore"/>. /// </summary> /// <param name="storeName">The name for the new store.</param> /// <returns>The newly created command store</returns> protected AltCmdSession CreateSession(string storeName) { var cs = CmdStore.Create(storeName, StoreType.Memory); var ec = new ExecutionContext(cs); return(new AltCmdSession(ec)); }
CmdStore Init(string storeName, StoreType t) { CmdStore result = CmdStore.Create(storeName, t); Assert.IsNotNull(result); Assert.AreEqual <int>(1, result.Branches.Count); return(result); }