|
|
@ -12,10 +12,10 @@ public class FakeCollaborateurRepository : GenericFakeRepository<CollaborateurSq |
|
|
|
{ |
|
|
|
{ |
|
|
|
new(1, "Dupont", "Jean", new DateTime(1980, 12, 10), |
|
|
|
new(1, "Dupont", "Jean", new DateTime(1980, 12, 10), |
|
|
|
EnumGenreSql.MASCULIN, EnumStatutSql.NONCADRE, 0, "1 rue du Louvre, 63000, Clermont-Ferrand", "0660258644", |
|
|
|
EnumGenreSql.MASCULIN, EnumStatutSql.NONCADRE, 0, "1 rue du Louvre, 63000, Clermont-Ferrand", "0660258644", |
|
|
|
"jean.dupont@gmail.com", "jean.dupont@apside-groupe.com", new DateTime(2023, 12, 17), 2, 1), |
|
|
|
"jean.dupont@gmail.com", "jean.dupont@apside-groupe.com", new DateTime(2023, 12, 17), 1), |
|
|
|
new(2, "Michel", "Laura", new DateTime(1985, 08, 12), |
|
|
|
new(2, "Michel", "Laura", new DateTime(1985, 08, 12), |
|
|
|
EnumGenreSql.FEMININ, EnumStatutSql.NONCADRE, 0, "5 rue du Louvre, 63000, Clermont-Ferrand", "0660258644", |
|
|
|
EnumGenreSql.FEMININ, EnumStatutSql.NONCADRE, 0, "5 rue du Louvre, 63000, Clermont-Ferrand", "0660258644", |
|
|
|
"laura.michel@gmail.com", "laura.michel@apside-groupe.com", new DateTime(2023, 12, 17), 1, 1) |
|
|
|
"laura.michel@gmail.com", "laura.michel@apside-groupe.com", new DateTime(2023, 12, 17), 1) |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -26,11 +26,6 @@ public class FakeCollaborateurRepository : GenericFakeRepository<CollaborateurSq |
|
|
|
return Context.Where(entity => entity.BusinessUnitId == businessUnitId).ToList(); |
|
|
|
return Context.Where(entity => entity.BusinessUnitId == businessUnitId).ToList(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public IList<CollaborateurSqlDto> GetCollaborateursByReferrer(int referrerId) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return Context.Where(entity => entity.ReferrerId == referrerId).ToList(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public CollaborateurSqlDto GetCollaborateurByApsideMail(string apsideMail) |
|
|
|
public CollaborateurSqlDto GetCollaborateurByApsideMail(string apsideMail) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return Context.First(entity => entity.ApsideMail == apsideMail); |
|
|
|
return Context.First(entity => entity.ApsideMail == apsideMail); |
|
|
|