public void GetStorageOptionById_WithIdMatchingStorageOption_ShouldReturnCorrectStorageOption() { SetUp(); SeedData(); var sorageOption = _storageOptionService.GetStorageOptionById(1); Assert.True(sorageOption != null); }
// GET: Storages/Details/5 public IActionResult Details(int?id) { if (id == null) { return(NotFound()); } var storage = _service.GetStorageOptionById(id); if (storage == null) { return(NotFound()); } return(View(storage)); }