testunitairepourEFjoueur
continuous-integration/drone/push Build is passing Details

pull/51/head
Arafamamadouelaphi 3 years ago
parent 45b88b6c75
commit b6ffeb3bb2

@ -34,8 +34,8 @@ namespace BowlingStub
{
return listJoueurs;
}
public IEnumerable<Joueur> GetAll(int n = 10, int j = 0)
//n represente le nbr de joueurs a creer dans la liste
public IEnumerable<Joueur> GetAll(int n = 10)
{
for (int i = 0; i < n; i++)
{
@ -43,7 +43,7 @@ namespace BowlingStub
}
return listJoueurs;
}
///ged
public Joueur GetDataWithId(int id)
{
throw new NotImplementedException();
@ -52,7 +52,7 @@ namespace BowlingStub
public Joueur GetDataWithName(string name)
{
throw new NotImplementedException();
}
}//
public bool Update(Joueur data)
{

@ -40,6 +40,7 @@ namespace BowlingStub
}
return listParties;
}
//GDW?
public Partie GetDataWithId(int id)
{

@ -38,7 +38,8 @@ namespace Test.BowlingAppUnitTest
{
if (!isValid && !isFormated)
{
Assert.Throws<ArgumentException>(
Assert.Throws<ArgumentException>
(
() => new Joueur(pseudo)
);
return;

@ -0,0 +1,13 @@
using System;
/// <summary>
///TEST EF POR LES JOUEURS
/// </summary>
public class testEFjoueur
{
public testEFjoueur()
{
}
}
Loading…
Cancel
Save