Example #1
0
        internal void AddKey(Key key)
        {
            var ev = new KeyAddedEvent(key.Id, key.Weight, key.Owner);

            _events.Add(ev);

            Apply((dynamic)ev);
        }
Example #2
0
 private void Apply(KeyAddedEvent e)
 {
     _things.Add(new Key(e.Id, e.Weight, e.Owner));
 }
Example #3
0
 private void Apply(KeyAddedEvent e)
 {
     _things["keys"].Add(e.Id);
     _weights.Add(e.Id, e.Weight);
 }