Ejemplo n.º 1
0
        public override EventBase <TId> DeepCloneWithId(TId id)
        {
            var result = new NullEvent <TId>(
                id,
                this.TimestampUtc.DeepClone());

            return(result);
        }
Ejemplo n.º 2
0
        /// <inheritdoc />
        public bool Equals(NullEvent <TId> other)
        {
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            var result = this.TimestampUtc.IsEqualTo(other.TimestampUtc) &&
                         this.Id.IsEqualTo(other.Id);

            return(result);
        }