示例#1
0
 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));
 }
示例#4
0
 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("datetimefactory", System.Current.DateTime);
     System.Current.DateTime = mock;
 }
示例#6
0
 public override void BeforeCall(ICallContext callContext)
 {
     callContext.SetProperty("CurrentCulture", Thread.CurrentThread.CurrentCulture);
     Thread.CurrentThread.CurrentCulture = this.culture;
 }
		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("transactionScope", new TransactionScope(this.Option, new TransactionOptions() { IsolationLevel = this.IsolationLevel, Timeout = TimeSpan.FromMilliseconds(this.TimeoutMs) }));
 }
		public override void BeforeCall(ICallContext callContext)
		{
			callContext.SetProperty("CurrentCulture", Thread.CurrentThread.CurrentCulture);
			Thread.CurrentThread.CurrentCulture = this.culture;
		}