コード例 #1
0
 private void Apply(UserPasswordResetted @event)
 {
     Password = @event.NewPassword;
       LastPasswordChangedDate = @event.LastPasswordChangedDate;
 }
コード例 #2
0
 public void UserPasswordResetted()
 {
     var userId = Guid.NewGuid();
       var resetDate = DateTime.Now;
       var @event = new UserPasswordResetted(userId, "123abc", resetDate);
       Assert.AreEqual(userId, @event.AggregateId);
       Assert.AreEqual("123abc", @event.NewPassword);
       Assert.AreEqual(resetDate, @event.LastPasswordChangedDate);
 }