public async Task EMailTypeER_TestGetEMailType()
        {
            var eMailType = await EMailTypeER.GetEMailTypeER(1);

            Assert.NotNull(eMailType);
            Assert.IsType <EMailTypeER>(eMailType);
        }
        public async Task EMailTypeER_TestDeleteObjectFromDatabase()
        {
            const int ID_TO_DELETE = 99;

            await EMailTypeER.DeleteEMailTypeER(ID_TO_DELETE);

            await Assert.ThrowsAsync <DataPortalException>(() => EMailTypeER.GetEMailTypeER(ID_TO_DELETE));
        }
        public async Task EMailTypeER_TestUpdateExistingEMailTypeER()
        {
            var eMailType = await EMailTypeER.GetEMailTypeER(1);

            eMailType.Notes = "These are updated Notes";

            var result = await eMailType.SaveAsync();

            Assert.NotNull(result);
            Assert.Equal("These are updated Notes", result.Notes);
        }