public void LayananBL_Delete_Test() { // arrange // act _layananBL.Delete("A"); // assert _layananDal.AssertWasCalled(x => x.Delete("A")); }
public IHttpActionResult Delete(string id) { try { _layananBL.Delete(id); return(Ok()); } catch (Exception ex) { return(BadRequest(ex.Message)); } }