Esempio n. 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));
 }
Esempio n. 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;
 }
Esempio n. 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;
		}