Beispiel #1
0
        public void Delete_Valid()
        {
            //arange

            //act
            service.Delete(1);

            var result = service.GetById(1);

            //assert
            Assert.Null(result);
        }
Beispiel #2
0
 public IActionResult Delete(int id)
 {
     if (_stewardessesSrvice.Delete(id))
     {
         return(Ok());
     }
     return(NotFound());
 }