public void UnlockUser()
 {
     var userId = Guid.NewGuid();
       var resetDate = DateTime.Now;
       var command = new UnlockUser(userId, resetDate);
       Assert.AreEqual(userId, command.AggregateId);
       Assert.IsFalse(command.IsLockedOut);
       Assert.AreEqual(resetDate, command.LastLockedOutDate);
 }
 public void HandleUnlockUser()
 {
     var handler = GetHandler();
       var dateRef = DateTime.Now;
       var command = new UnlockUser(guid, dateRef);
       handler.Handle(command);
       Assert.AreEqual(guid, user.Id);
       Assert.IsFalse(user.IsLockedOut);
       Assert.AreEqual(dateRef, user.LastLockedOutDate);
       repository.Verify(x => x.Save(user, It.IsAny<Guid>(), It.IsAny<Action<IDictionary<string, object>>>()), Times.Once());
 }