public void Delete_Returns_NotFound() { //Arrange var contractId = A <int>(); ExpectGetContractReturns(contractId, default(ItContract)); //Act var result = _sut.Delete(contractId); //Assert Assert.False(result.Ok); Assert.Equal(OperationFailure.NotFound, result.Error); }
public ResultDto Delete([FromForm] int id) { _service.Delete(id); return(ResultDto.Success()); }