public void LayananBL_Delete_Test()
        {
            //  arrange

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

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