|
|
@ -104,8 +104,11 @@ namespace EPAServeur.Tests.Services |
|
|
|
Id = id, |
|
|
|
Id = id, |
|
|
|
DateDemande = demandeDelegation.DateDemande, |
|
|
|
DateDemande = demandeDelegation.DateDemande, |
|
|
|
RaisonDemande = demandeDelegation.RaisonDemande, |
|
|
|
RaisonDemande = demandeDelegation.RaisonDemande, |
|
|
|
DateReponse = DateTime.Now, |
|
|
|
EtatDemande = EtatDemande.Validee, |
|
|
|
EtatDemande = EtatDemande.Validee |
|
|
|
Referent = new CollaborateurDTO() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Id = idReferent |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
DemandeDelegationDTO reponse = await demandeDelegationService.UpdateDemandeDelegation(id, demandeDTO); |
|
|
|
DemandeDelegationDTO reponse = await demandeDelegationService.UpdateDemandeDelegation(id, demandeDTO); |
|
|
|
demandeDelegation = await context.DemandeDelegations.FindAsync(id); |
|
|
|
demandeDelegation = await context.DemandeDelegations.FindAsync(id); |
|
|
@ -133,7 +136,6 @@ namespace EPAServeur.Tests.Services |
|
|
|
Id = id, |
|
|
|
Id = id, |
|
|
|
DateDemande = demandeDelegation.DateDemande, |
|
|
|
DateDemande = demandeDelegation.DateDemande, |
|
|
|
RaisonDemande = demandeDelegation.RaisonDemande, |
|
|
|
RaisonDemande = demandeDelegation.RaisonDemande, |
|
|
|
DateReponse = DateTime.Now, |
|
|
|
|
|
|
|
EtatDemande = EtatDemande.Rejetee, |
|
|
|
EtatDemande = EtatDemande.Rejetee, |
|
|
|
RaisonRefus = "exemple raison refus" |
|
|
|
RaisonRefus = "exemple raison refus" |
|
|
|
}; |
|
|
|
}; |
|
|
@ -158,7 +160,6 @@ namespace EPAServeur.Tests.Services |
|
|
|
Id = id, |
|
|
|
Id = id, |
|
|
|
DateDemande = DateTime.Now, |
|
|
|
DateDemande = DateTime.Now, |
|
|
|
RaisonDemande = "exemple raison demande", |
|
|
|
RaisonDemande = "exemple raison demande", |
|
|
|
DateReponse = DateTime.Now, |
|
|
|
|
|
|
|
EtatDemande = etatDemande, |
|
|
|
EtatDemande = etatDemande, |
|
|
|
RaisonRefus = raisonRefus |
|
|
|
RaisonRefus = raisonRefus |
|
|
|
}; |
|
|
|
}; |
|
|
@ -179,7 +180,6 @@ namespace EPAServeur.Tests.Services |
|
|
|
Id = id, |
|
|
|
Id = id, |
|
|
|
DateDemande = DateTime.Now, |
|
|
|
DateDemande = DateTime.Now, |
|
|
|
RaisonDemande = "exemple raison demande", |
|
|
|
RaisonDemande = "exemple raison demande", |
|
|
|
DateReponse = DateTime.Now, |
|
|
|
|
|
|
|
EtatDemande = etatDemande, |
|
|
|
EtatDemande = etatDemande, |
|
|
|
RaisonRefus = raisonRefus |
|
|
|
RaisonRefus = raisonRefus |
|
|
|
}; |
|
|
|
}; |
|
|
@ -210,7 +210,6 @@ namespace EPAServeur.Tests.Services |
|
|
|
Id = id, |
|
|
|
Id = id, |
|
|
|
DateDemande = demandeDelegation.DateDemande, |
|
|
|
DateDemande = demandeDelegation.DateDemande, |
|
|
|
RaisonDemande = demandeDelegation.RaisonDemande, |
|
|
|
RaisonDemande = demandeDelegation.RaisonDemande, |
|
|
|
DateReponse = DateTime.Now, |
|
|
|
|
|
|
|
EtatDemande = etatDemande, |
|
|
|
EtatDemande = etatDemande, |
|
|
|
RaisonRefus = raisonRefus |
|
|
|
RaisonRefus = raisonRefus |
|
|
|
}; |
|
|
|
}; |
|
|
|