public async Task Delete_ReturnsNoContent()
        {
            //Arrange
            _decisionService
            .Setup(x => x.DeleteDecisionAsync(It.IsAny <int>()));

            //Act
            var result = await _decisionsController.Delete(It.IsAny <int>());

            //Assert
            _decisionService.Verify();
            Assert.IsNotNull(result);
            Assert.IsInstanceOf <NoContentResult>(result);
        }
Beispiel #2
0
 public ActionResult Delete(FormCollection _form)
 {
     return((ActionResult)dc.Delete(Request)["view"]);
     //return null;
 }