예제 #1
0
        public TestEntity CreateEntity(TestEntityId id)
        {
            var evnt = new TestCreateEntityEvent(id);

            Apply(evnt);

            var entity = new TestEntity(this, id);

            return(entity);
        }
예제 #2
0
        public void CreateEntity(TestEntityId id)
        {
            var evnt = new TestCreateEntityEvent(id);

            Apply(evnt);
        }
예제 #3
0
        public void When(TestCreateEntityEvent e)
        {
            var entity = new TestEntity(Root, e.EntityId);

            Entities.Add(entity);
        }