internal static TestEntity Create(TestEntityAddedToTestAggregateEvent @event) { var te = new TestEntity(); te.Apply(@event); return(te); }
private void Handle(TestEntityAddedToTestAggregateEvent @event) { MyTe = TestEntity.Create(@event); }
#pragma warning disable IDE0051 // Remove unused private members #pragma warning disable CC0068 // Unused Method private void Handle(TestEntityAddedToTestAggregateEvent @event) { Id = TestEntityId.FromGuid(@event.Id); MyString = StringValue.FromString(@event.MyString); }