Beispiel #1
0
        public async Task DocumentTypeER_TestGetDocumentType()
        {
            var documentType = await DocumentTypeER.GetDocumentTypeER(1);

            Assert.NotNull(documentType);
            Assert.IsType <DocumentTypeER>(documentType);
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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);
        }