public bool Contains <TAggregate>(object aggregateID) { var type = typeof(TAggregate); return(_pending.ContainsKey(type) && _pending[type].ContainsKey(aggregateID)); }