private async void PaymentSourceERL_TestNewPaymentSourceERL()
        {
            var paymentSourceEdit = await PaymentSourceERL.NewPaymentSourceERL();

            Assert.NotNull(paymentSourceEdit);
            Assert.IsType <PaymentSourceERL>(paymentSourceEdit);
        }
        private async void PaymentSourceERL_TestGetPaymentSourceERL()
        {
            var paymentSourceEdit =
                await PaymentSourceERL.GetPaymentSourceERL();

            Assert.NotNull(paymentSourceEdit);
            Assert.Equal(3, paymentSourceEdit.Count);
        }
        private async void PaymentSourceERL_TestAddPaymentSourceERL()
        {
            var categoryList =
                await PaymentSourceERL.GetPaymentSourceERL();

            var countBeforeAdd = categoryList.Count;

            var paymentSourceToAdd = categoryList.AddNew();

            BuildPaymentSource(paymentSourceToAdd);

            var updatedCategoryList = await categoryList.SaveAsync();

            Assert.NotEqual(countBeforeAdd, updatedCategoryList.Count);
        }
        private async void PaymentSourceERL_TestDeletePaymentSourceERL()
        {
            const int ID_TO_DELETE = 99;
            var       categoryList =
                await PaymentSourceERL.GetPaymentSourceERL();

            var listCount        = categoryList.Count;
            var categoryToDelete = categoryList.First(cl => cl.Id == ID_TO_DELETE);
            // remove is deferred delete
            var isDeleted = categoryList.Remove(categoryToDelete);

            var paymentSourceListAfterDelete = await categoryList.SaveAsync();

            Assert.NotNull(paymentSourceListAfterDelete);
            Assert.IsType <PaymentSourceERL>(paymentSourceListAfterDelete);
            Assert.True(isDeleted);
            Assert.NotEqual(listCount, paymentSourceListAfterDelete.Count);
        }
        private async void PaymentSourceERL_TestUpdatePaymentSourceERL()
        {
            const int    ID_TO_UPDATE = 1;
            const string NOTES_UPDATE = "Updated Notes";

            var categoryList =
                await PaymentSourceERL.GetPaymentSourceERL();

            var paymentSourceToUpdate = categoryList.First(cl => cl.Id == ID_TO_UPDATE);

            paymentSourceToUpdate.Notes = NOTES_UPDATE;

            var updatedList = await categoryList.SaveAsync();

            var updatedPaymentSource = updatedList.First(el => el.Id == ID_TO_UPDATE);

            Assert.NotNull(updatedList);
            Assert.NotNull(updatedPaymentSource);
            Assert.Equal(NOTES_UPDATE, updatedPaymentSource.Notes);
        }