public void GetTest_Not_Null() { var testId = 2; var data = repository.Get(testId); Assert.NotNull(data); }
// GET: Test/Delete/5 public async Task <IActionResult> Delete(int?id) { if (id == null) { return(NotFound()); } var test = await _TestListRpository.Get(id ?? 1); if (test == null) { return(NotFound()); } return(View(test)); }