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.
31 lines
516 B
31 lines
516 B
using apiLOL;
|
|
using apiLOL.Controllers;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using StubLib;
|
|
|
|
namespace TestUnitaireAPiLol
|
|
{
|
|
public class UnitTest1
|
|
{
|
|
[Fact]
|
|
public void Test1()
|
|
{
|
|
|
|
}
|
|
|
|
[Fact]
|
|
public void TestPostChampion()
|
|
{
|
|
// Arrange
|
|
var controller = new ControllerChampions(new StubData());
|
|
var champDTO = new ChampionDTO("Charle", "Charle est un champion de League of Legends");
|
|
|
|
// Act
|
|
var result = controller.Post(champDTO);
|
|
|
|
// Assert
|
|
Assert.IsType<OkResult>(result);
|
|
|
|
}
|
|
}
|
|
} |