public void CanDeleteArea() { //Delete Area _areaServices.DeleteArea(123456); // Actual Result Area resultArea = fakeAreaRepository._fakeRepository.First(); bool result = resultArea.Dormant; // Assert result.Should().Equals(true); }
public async Task <IActionResult> DeleteArea(int areaId) { try { await _areaServices.DeleteArea(areaId); return(Ok()); } catch (Exception e) { return(BadRequest(e)); } }
public async Task <int> DeleteArea(int idArea) { return(await _areaServices.DeleteArea(idArea)); }