@ -12,7 +12,7 @@ public class FriendshipEntityTests (DatabaseFixture fixture) : IClassFixture<Dat
{
varfollower=newAthleteEntity
{
Username="follower_user",
Username="follower_user1",
LastName="Follower",
FirstName="User",
Email="follower.user@example.com",
@ -26,7 +26,7 @@ public class FriendshipEntityTests (DatabaseFixture fixture) : IClassFixture<Dat
varfollowing=newAthleteEntity
{
Username="following_user",
Username="following_user1",
LastName="Following",
FirstName="User",
Email="following.user@example.com",
@ -35,7 +35,8 @@ public class FriendshipEntityTests (DatabaseFixture fixture) : IClassFixture<Dat
Weight=60.0f,
Password="followingpassword",
DateOfBirth=newDateOnly(1995,5,10),
IsCoach=false
IsCoach=false,
Followers=(ICollection<FriendshipEntity>)follower
};
varfriendship=newFriendshipEntity
@ -43,24 +44,25 @@ public class FriendshipEntityTests (DatabaseFixture fixture) : IClassFixture<Dat
Follower=follower,
Following=following,
StartDate=DateTime.Now
};/*
};
//Cast impossible entre Entities.AthleteEntity & System.Collections.Generic.ICollection ; Idem pour Update et Delete mais pas modif vu que ca ne fonctionne pas