private StructureType CreateStructureType(StructureType t) { AnnotateService target = new AnnotateService(Parameters.TestDatabaseName); // TODO: Initialize to an appropriate value StructureType returned_t = target.CreateStructureType(t); //Make sure the database gave us a new ID Assert.AreNotEqual(t.ID, returned_t.ID); //We should not find the original structure type's generated ID in the database Assert.IsNull(target.GetStructureTypeByID(t.ID)); Assert.IsNotNull(target.GetStructureTypeByID(returned_t.ID)); return returned_t; }