public void LayananBL_Delete_Test()
        {
            //  arrange

            //  act
            _layananBL.Delete("A");

            //  assert
            _layananDal.AssertWasCalled(x => x.Delete("A"));
        }
示例#2
0
 public IHttpActionResult Delete(string id)
 {
     try
     {
         _layananBL.Delete(id);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }