Mise à jour des tests unitaires en fonction du filtre sur les statuts de l'EP

develop
jboinembalome 4 years ago
parent 15e9a57e0b
commit bc43b2f2ff
  1. 6
      EPAServeur.Tests/Services/DemandeFormationServiceTests.cs

@ -63,7 +63,7 @@ namespace EPAServeur.Tests.Services
[TestCase(new EtatDemande[] { EtatDemande.EnAttente, EtatDemande.Validee, EtatDemande.Rejetee }, new long[] { 1, 2 }, true, 1, 20, "gaillard", null, null, null)] [TestCase(new EtatDemande[] { EtatDemande.EnAttente, EtatDemande.Validee, EtatDemande.Rejetee }, new long[] { 1, 2 }, true, 1, 20, "gaillard", null, null, null)]
[TestCase(new EtatDemande[] { EtatDemande.EnAttente, EtatDemande.Validee, EtatDemande.Rejetee }, new long[] { 1 }, false, 1, 5, "gaillard", null, null, null)] [TestCase(new EtatDemande[] { EtatDemande.EnAttente, EtatDemande.Validee, EtatDemande.Rejetee }, new long[] { 1 }, false, 1, 5, "gaillard", null, null, null)]
[TestCase(null, null, null, 2, 10, null, null, null, null)] [TestCase(null, null, null, 2, 5, null, null, null, null)]
[TestCase(null, new long[] { 1 }, null, 1, 10, null, null, null, null)] [TestCase(null, new long[] { 1 }, null, 1, 10, null, null, null, null)]
[TestCase(new EtatDemande[] { EtatDemande.Rejetee }, null, null, 1, 10, "gai", null, null, null)] [TestCase(new EtatDemande[] { EtatDemande.Rejetee }, null, null, 1, 10, "gai", null, null, null)]
[TestCase(new EtatDemande[] { EtatDemande.EnAttente, EtatDemande.Validee, EtatDemande.Rejetee }, new long[] { }, null, 1, 50, "gai", null, null, null)] [TestCase(new EtatDemande[] { EtatDemande.EnAttente, EtatDemande.Validee, EtatDemande.Rejetee }, new long[] { }, null, 1, 50, "gai", null, null, null)]
@ -121,10 +121,10 @@ namespace EPAServeur.Tests.Services
nbDemandeFormationDeuxiemePage = 5; nbDemandeFormationDeuxiemePage = 5;
break; break;
case 6: case 6:
nbDemandeFormationDeuxiemePage = 6; nbDemandeFormationDeuxiemePage = 4;
break; break;
case 10: case 10:
nbDemandeFormationDeuxiemePage = 2; nbDemandeFormationDeuxiemePage = 0;
break; break;
default: default:
nbDemandeFormationDeuxiemePage = 0; nbDemandeFormationDeuxiemePage = 0;

Loading…
Cancel
Save