コード例 #1
0
        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);
        }
コード例 #2
0
 public ResultDto Delete([FromForm] int id)
 {
     _service.Delete(id);
     return(ResultDto.Success());
 }