I have this portion of code in my test class:

```
Campaign campaign = new Campaign(Name='prova1' , isActive=TRUE);
    insert campaign;
    System.debug('Campaign id: ' + campaign.Id);

    Lead lead = new Lead(Company='Company1', Status='Open', LastName='gj', Email='sgj1234@gmail.com');
    insert lead;
    System.debug('Lead id: ' + lead.Id);

    CampaignMember cm1 = new CampaignMember(CampaignId=campaign.Id, Status='DS', LeadId=lead.Id);
    insert cm1;
    System.debug('CampMember id: '+cm1.Id);

    ApexPages.StandardController controller = new ApexPages.StandardController(campaign);
    HandlerGC hgc = new HandlerGC(controller);

    hgc.ccgCampagne();

```

The ccgCapagne method in the HandlerGC class contains:

```
public HandlerGC(ApexPages.StandardController controller){

    IdCampaign = (String)controller.getRecord().Id;
    ShowMessage =false;
    //Text = 'wanna proceed';
}

public PageReference ccgCampagne(){

    AllMember = [Select Id, CampaignId, LeadId, ContactId, Status from CampaignMember where CampaignId = :IdCampaign and Status = 'DS'];
    System.debug('A' + IdCampaign);
    List<Case> AllCase = new List<Case>();
    AssignmentRule AR = new AssignmentRule();

    AR = [select id from AssignmentRule where SobjectType = 'Case' and Active = true limit 1];

    Database.DMLOptions dmlOpts = new Database.DMLOptions();
    dmlOpts.assignmentRuleHeader.assignmentRuleId= AR.id;

    system.debug('Member List'+AllMember);
    if(AllMember.size()>0){

        system.debug('IF');

        for(CampaignMember CM: AllMember){
etc .......

```

Now the coverage of the code only gets until the 
if(AllMember.size()>0) part of the code, wich it should pass without problem since there is/should be one campaign member, but there seems to be none.

Any help?