public override void TearDown() { if (ctx != null) { ctx.Dispose(); ctx = null; } base.TearDown(); }
public override void TearDown() { PostTeardown(); if (_ctx != null) { _ctx.Dispose(); _ctx = null; } base.TearDown(); }
public void Dispose() { if (ctx != null) { ctx.Dispose(); ctx = null; } using (var localCtx = GetContext()) { localCtx.GetQuery <TestObjClass>().ForEach(obj => { obj.ObjectProp = null; localCtx.Delete(obj); }); localCtx.SubmitChanges(); } }
public override void TearDown() { ctx.Dispose(); base.TearDown(); }
public virtual void DisposeContext() { ctx.Dispose(); }