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