private void Apply(UserLocked @event)
 {
     IsLockedOut = @event.IsLockedOut;
       LastLockedOutDate = @event.LastLockedOutDate;
 }
 public void UserLocked()
 {
     var userId = Guid.NewGuid();
       var resetDate = DateTime.Now;
       var @event = new UserLocked(userId, resetDate);
       Assert.AreEqual(userId, @event.AggregateId);
       Assert.IsTrue(@event.IsLockedOut);
       Assert.AreEqual(resetDate, @event.LastLockedOutDate);
 }