public async Task DocumentTypeER_TestGetDocumentType() { var documentType = await DocumentTypeER.GetDocumentTypeER(1); Assert.NotNull(documentType); Assert.IsType <DocumentTypeER>(documentType); }
public async Task DocumentTypeER_TestDeleteObjectFromDatabase() { const int ID_TO_DELETE = 99; await DocumentTypeER.DeleteDocumentTypeER(ID_TO_DELETE); await Assert.ThrowsAsync <DataPortalException>(() => DocumentTypeER.GetDocumentTypeER(ID_TO_DELETE)); }
public async Task DocumentTypeER_TestUpdateExistingDocumentTypeER() { var documentType = await DocumentTypeER.GetDocumentTypeER(1); documentType.Notes = "These are updated Notes"; var result = await documentType.SaveAsync(); Assert.NotNull(result); Assert.Equal("These are updated Notes", result.Notes); }