public void SaveOfInheritingTypeTest() { CivicStructure toSave = new CivicStructure(); toSave.OpeningHours = new Text { Value = "Opening hours" }; toSave.Name = "The name of the civic structure"; toSave.Photo = new OneOfThese <ImageObject, Photograph>(); toSave.Photo.Value <Photograph>(new Photograph { Name = "The photograph" }); DatabaseRepository repo = new DatabaseRepository(new SQLiteDatabase($".\\{nameof(SaveOfInheritingTypeTest)}", "SchemaDotOrg")); repo.AddNamespace(typeof(CivicStructure)); repo.Save(toSave); }