Beispiel #1
0
 public void Sleep(SubRequestMock request)
 {
     if (request.Value == 6 && request.SleepTimeout.HasValue)
     {
         Thread.Sleep(request.SleepTimeout.Value);
     }
 }
Beispiel #2
0
 public void ReadString(SubRequestMock request)
 {
     request.StrValue = request.InitialString;
 }
Beispiel #3
0
 public void Mul(SubRequestMock request)
 {
     request.Value = checked (2 * request.Value);
 }
Beispiel #4
0
 public void AddValue(SubRequestMock request)
 {
     request.ParentRequest.Values.Add(request.Value);
 }
Beispiel #5
0
 public void Parse(SubRequestMock request)
 {
     request.Value = int.Parse(request.StrValue);
 }