Esempio n. 1
0
        /// <summary>
        /// Adds the mood.
        /// </summary>
        /// <param name="rate">The rate of the mood.</param>
        /// <param name="date">The date of the mood.</param>
        public void AddMood(int rate, DateTime date)
        {
            this.Mood  = new UserMood(date, rate);
            this.IsNew = false;

            var @event = new UserMoodSet(this.Id, rate, date);

            this.ApplyChange(@event);
        }
Esempio n. 2
0
 private void Apply(UserMoodSet @event)
 {
     //TODO: Investigate why we need this.
 }