You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1000 B

// See https://aka.ms/new-console-template for more information
using Client;
using DTO;
using EntityFramwork;
using EntityFramwork.Factories;
using Model;
using StubLib;
StubData tmp = new StubData();
var tmpListe = await tmp.ChampionsMgr.GetItemsByName("Akali", 0, 6);
Champion champ = tmpListe.First();
Factories facto = new Factories();
using ( BDDContext db = new BDDContext())
{
db.SaveChanges();
}
/*
Console.WriteLine("Start");
Console.ReadLine();
ClientChampions client = new ClientChampions();
List<DtoChampions> champions = await client.Get();
DtoChampions champ = await client.GetChampion("Akali");
Console.WriteLine(champions.Count);
Console.WriteLine(champ.name);
DtoChampions dtoTest = new DtoChampions("toto");
await client.Post(dtoTest);
List<DtoChampions> champions2 = await client.Get();
Console.WriteLine(champions2.Count);
DtoChampions champ2 = await client.GetChampion("toto");
Console.WriteLine(champ2.name);
Console.WriteLine("End");
Console.ReadLine();
*/