public void GetGpuById_WithIdMatchingGpu_ShouldReturnCorrectGpu() { SetUp(); SeedData(); var gpu = _gpuService.GetGpuById(1); Assert.True(gpu != null); }
// GET: Gpus/Details/5 public IActionResult Details(int?id) { if (id == null) { return(NotFound()); } var gpu = _service.GetGpuById(id); if (gpu == null) { return(NotFound()); } return(View(gpu)); }