public void UpdateUserLastLoginDate()
 {
     var guid = Guid.NewGuid();
       var date = DateTime.Now;
       var command = new UpdateUserLastLoginDate(guid, date);
       Assert.AreEqual(guid, command.AggregateId);
       Assert.AreEqual(date, command.LastLoginDate);
 }
 public void HandleUpdateLastLoginDate()
 {
     var handler = GetHandler();
       var dateRef = DateTime.Now;
       var command = new UpdateUserLastLoginDate(guid, dateRef);
       handler.Handle(command);
       Assert.AreEqual(guid, user.Id);
       Assert.AreEqual(dateRef, user.LastLoginDate);
       repository.Verify(x => x.Save(user, It.IsAny<Guid>(), It.IsAny<Action<IDictionary<string, object>>>()), Times.Once());
 }