public void ModelPerson_Basic_Valid() { DataStoreUtility.DataStoreSetup(); DataStoreUtility.LoadTestFile(); PersonModel tt = DV.PersonDV.GetModelFromId("I0000"); Assert.True(tt.Valid, "Invalid person"); }
public void ModelNote_Biography() { DataStoreUtility.LoadTestFile(); NoteModel tt = DV.NoteDV.GetModelFromId("N0000"); Assert.True(tt.Valid, "Invalid Note"); Assert.True(tt.GType == Common.Constants.NoteTypeBiography, "Invalid Note"); }
public void ModelPerson_Notes() { DataStoreUtility.DataStoreSetup(); DataStoreUtility.LoadTestFile(); PersonModel tt = DV.PersonDV.GetModelFromId("I0003"); Assert.True(tt.Valid, "Invalid person"); Assert.True(tt.GNoteRefCollection.Count == 2, "Wrong notes count"); HLinkNoteModel noteModel = tt.GNoteRefCollection.GetFirstOfType(Common.Constants.NoteTypeBiography); Assert.True(noteModel.DeRef.Id == "N0000", "Wrong Person Model Notes Bio found"); Assert.True(noteModel.DeRef.GType == Common.Constants.NoteTypeBiography, "Wrong Person Model Notes Type found"); Assert.True(noteModel.DeRef.GStyledText.GText == "Biography Note.\n", "Wrong Person Model Notes Text found"); }