public void GetGpuById_WithIdMatchingGpu_ShouldReturnCorrectGpu()
        {
            SetUp();

            SeedData();
            var gpu = _gpuService.GetGpuById(1);

            Assert.True(gpu != null);
        }
示例#2
0
        // 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));
        }