public void UpdateUserLastLoginDate() { var guid = Guid.NewGuid(); var date = DateTime.Now; var @event = new UserLastLoginDateUpdated(guid, date); Assert.AreEqual(guid, @event.AggregateId); Assert.AreEqual(date, @event.LastLoginDate); }
private void Apply(UserLastLoginDateUpdated @event) { LastLoginDate = @event.LastLoginDate; }