Пример #1
0
        public void DevService_GetDevById_ReturnsCorrectInt()
        {
            var result = _controller.Get(1);

            Assert.AreEqual(1, _mockService.CallCount);
            Assert.IsInstanceOfType(result, (typeof(OkNegotiatedContentResult <DevDetails>)));
        }
Пример #2
0
        public void DevController_GetByID_CountShouldBeCorrectInt()
        {
            var result = _controller.Get(1);

            Assert.AreEqual(1, _mockService.CallCount);
            Assert.IsInstanceOfType(result, typeof(OkNegotiatedContentResult <DevDetails>));
        }