private void une_alerte() { //TODO : Mettre l'application en mode Mocks et aller chercher un joueur dans le Mock var mockRepo = new MockAlertesRepository(); _alerte = mockRepo.GetById(1).Result; }
private async void Un_alerte() { var mockRepo = new MockAlertesRepository(); var alertes = await mockRepo.GetAll(); _alerte = alertes.First(); }
public async Task Test_Index_Model_Is_An_Enumerable_Model_Of_Joueurs() { var mockRepo = new MockAlertesRepository(); var controller = new AlertesController(mockRepo); var result = await controller.Index() as ViewResult; Assert.IsAssignableFrom <IEnumerable <Alerte> >(result.ViewData.Model); }
public async Task Test_Index_Returns_A_ViewResult() { var mockRepo = new MockAlertesRepository(); var controller = new AlertesController(mockRepo); var result = await controller.Index(); Assert.IsType <ViewResult>(result); }
public TestAlertesController() { mockRepo = new MockAlertesRepository(); controller = new AlertesController(mockRepo); }
public AlertesUnitTests() { //Arrange _mockRepo = new MockAlertesRepository(); _alertesController = new AlertesController(_mockRepo); }