public void GetStyle_ExpectedParameters_Ok() { mockStyleBusinessLogic.Setup(b1 => b1.Get(style.Name)).Returns(style); IHttpActionResult statusObtained = styleController.Get(style.Name); Assert.IsNotNull(statusObtained as OkNegotiatedContentResult <StyleModel>); }
public void Get_WhenCalled_ReturnsOkResult() { // Act var result = _controller.Get(); // Assert Assert.IsType <OkObjectResult>(result); }