private async void OrganizationTypeERL_TestNewOrganizationTypeERL()
        {
            var categoryOfOrganizationEdit = await OrganizationTypeERL.NewOrganizationTypeERL();

            Assert.NotNull(categoryOfOrganizationEdit);
            Assert.IsType <OrganizationTypeERL>(categoryOfOrganizationEdit);
        }
        private async void OrganizationTypeERL_TestGetOrganizationTypeERL()
        {
            var categoryOfOrganizationEdit =
                await OrganizationTypeERL.GetOrganizationTypeERL();

            Assert.NotNull(categoryOfOrganizationEdit);
            Assert.Equal(3, categoryOfOrganizationEdit.Count);
        }
        private async void OrganizationTypeERL_TestAddOrganizationTypeERL()
        {
            var categoryList =
                await OrganizationTypeERL.GetOrganizationTypeERL();

            var countBeforeAdd = categoryList.Count;

            var categoryOfOrganizationToAdd = categoryList.AddNew();

            await BuildOrganizationType(categoryOfOrganizationToAdd);

            var updatedCategoryList = await categoryList.SaveAsync();

            Assert.NotEqual(countBeforeAdd, updatedCategoryList.Count);
        }
        private async void OrganizationTypeERL_TestUpdateOrganizationTypeERL()
        {
            const int ID_TO_UPDATE = 1;

            var categoryList =
                await OrganizationTypeERL.GetOrganizationTypeERL();

            var countBeforeUpdate = categoryList.Count;
            var categoryOfOrganizationToUpdate = categoryList.First(cl => cl.Id == ID_TO_UPDATE);

            categoryOfOrganizationToUpdate.Name = "Updated category";

            var updatedList = await categoryList.SaveAsync();

            Assert.Equal(countBeforeUpdate, updatedList.Count);
        }
        private async void OrganizationTypeERL_TestDeleteOrganizationTypeERL()
        {
            const int ID_TO_DELETE = 99;
            var       categoryList =
                await OrganizationTypeERL.GetOrganizationTypeERL();

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

            var categoryOfOrganizationListAfterDelete = await categoryList.SaveAsync();

            Assert.NotNull(categoryOfOrganizationListAfterDelete);
            Assert.IsType <OrganizationTypeERL>(categoryOfOrganizationListAfterDelete);
            Assert.True(isDeleted);
            Assert.NotEqual(listCount, categoryOfOrganizationListAfterDelete.Count);
        }