Exemplo n.º 1
0
        public void GetTest_Not_Null()
        {
            var testId = 2;
            var data   = repository.Get(testId);

            Assert.NotNull(data);
        }
Exemplo n.º 2
0
        // 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));
        }