示例#1
0
        public void GetStorageOptionById_WithIdMatchingStorageOption_ShouldReturnCorrectStorageOption()
        {
            SetUp();

            SeedData();
            var sorageOption = _storageOptionService.GetStorageOptionById(1);

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