public static void PushDirectory(IPatternContext context, params string[] directoryNames) { foreach (var each in directoryNames) { var directory = new MockDirectoryInfo(null, null, string.Empty, each, null); context.PushDirectory(directory); } }
public void Dispose(bool disposing) { if (this.disposed) { return; } if (disposing && this.context != null) { this.context.Dispose(); this.context = null; } // Free any unmanaged objects here. this.disposed = true; }
public Writer(IPatternContext context) { this.context = context; this.table = context.Set <TEntity>(); }
public Reader(IPatternContext context) { this.table = context.Set <TEntity>(); }