// ========================================================================== // AggregateHandlerTests.cs // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex Group // All rights reserved. // ========================================================================== using System; using Squidex.Infrastructure.EventSourcing; namespace Squidex.Infrastructure.Commands.TestHelpers { internal sealed class MyDomainObject : DomainObjectBase { public MyDomainObject(Guid id, int version) : base(id, version) { } public MyDomainObject RaiseNewEvent(IEvent @event) { RaiseEvent(@event); return this; } public MyDomainObject RaiseNewEvent(Envelope @event) { RaiseEvent(@event); return this; } protected override void DispatchEvent(Envelope @event) { } } }