public void UpdateUser()
 {
     var userId = Guid.NewGuid();
       var command = new UpdateUser(userId, "email", true, "comment");
       Assert.AreEqual(userId, command.AggregateId);
       Assert.AreEqual("email", command.Email);
       Assert.IsTrue(command.IsApproved);
       Assert.AreEqual("comment", command.Comment);
 }
 public void HandleUpdateUser()
 {
     var handler = GetHandler();
       var command = new UpdateUser(guid, "email2", true, "comment");
       handler.Handle(command);
       Assert.AreEqual(guid, user.Id);
       Assert.AreEqual("email2", user.Email);
       Assert.IsTrue(user.IsApproved);
       Assert.AreEqual("comment", user.Comment);
       repository.Verify(x => x.Save(user, It.IsAny<Guid>(), It.IsAny<Action<IDictionary<string, object>>>()), Times.Once());
 }