public SystemTag(SystemTagAdded @event) : this() { Name = @event.Name; AppliesToExpenses = @event.AppliesToExpenses; AppliesToTimesheets = @event.AppliesToTimesheets; AccountId = @event.AccountId; }
private void Apply(SystemTagAdded e) { var systemTag = new SystemTag(e.Name, e.AppliesToExpenses, e.AppliesToTimesheets); var newList = SystemTags.ToList(); newList.Add(systemTag); SystemTags = new ReadOnlyCollection <SystemTag>(newList); }