public ParentWithConstructor(ChildWithProperty1 child) => Child = child;
public ParentWithConstructor(ChildWithProperty1 child) { Child = child ?? throw new ArgumentNullException(nameof(child)); }