public override void BeforeCall(ICallContext callContext) { callContext.SetProperty("transactionScope", new TransactionScope(this.Option, new TransactionOptions() { IsolationLevel = this.IsolationLevel, Timeout = TimeSpan.FromMilliseconds(this.TimeoutMs) })); }
public override void BeforeCall(ICallContext callContext) { callContext.SetProperty("datetimefactory", System.Current.DateTime); System.Current.DateTime = mock; }
public override void BeforeCall(ICallContext callContext) { callContext.SetProperty("transactionScope", new TransactionScope(TransactionScopeOption.Required, DefaultTimeout)); }
public override void BeforeCall(ICallContext callContext) { Console.WriteLine(">> TestableExtension.BeforeCall " + callContext.Method.Name); calls.Add(callContext); callContext.SetProperty("Name", this.name); }
public override void BeforeCall(ICallContext callContext) { callContext.SetProperty("CurrentCulture", Thread.CurrentThread.CurrentCulture); Thread.CurrentThread.CurrentCulture = this.culture; }