public async Task Save_and_load_entity_with_child_entities() { var entity = new TestEntity(Guid.NewGuid().ToString(), "test"); var child = entity.AddChild(Guid.NewGuid().ToString(), "child"); child.Rename("child new name"); await target.SaveAsync(entity); var loadedEntity = await target.GetAsync <TestEntity>(entity.Id); loadedEntity.Should().BeEquivalentTo(entity, x => x.ComparingByMembers <TestEntity>().ComparingByMembers <TestEntityState>().WithTracing()); loadedEntity.StateModel.Name.Should().Be("test"); }