Example #1
0
        public void WebApiMethodResponseMessage()
        {
            var devOpsController = new DevOpsController(logger);
            var actionResult     = devOpsController.Post(fakeModel);

            //Assert
            Assert.AreEqual($"Hello { fakeModel.to } your message will be send", actionResult.message);
        }
Example #2
0
        public void WebApiMethodResponseType()
        {
            var devOpsController = new DevOpsController(logger);
            var actionResult     = devOpsController.Post(fakeModel);

            //Assert
            Assert.IsAssignableFrom <ResponseModel>(actionResult);
        }