protected override void Given()
 {
     base.Given();
     _expectedtimeout = 5;
     MessageLock      = Substitute.For <IMessageLock>();
     Handler          = new MyHandler();
 }
 protected override void Given()
 {
     base.Given();
     _expectedtimeout = 5;
     MessageLock      = Substitute.For <IMessageLock>();
     MessageLock.TryAquireLock(Arg.Any <string>(), Arg.Any <TimeSpan>()).Returns(new MessageLockResponse()
     {
         DoIHaveExclusiveLock = true
     });
     Handler = new MyHandler();
 }