Пример #1
0
        public ActionResult <MarkOperatingConditionsResponse> GetByMarkId(int markId)
        {
            var markOperatingConditions = _service.GetByMarkId(markId);

            if (markOperatingConditions != null)
            {
                return(Ok(_mapper.Map <MarkOperatingConditionsResponse>(markOperatingConditions)));
            }
            return(NotFound());
        }
Пример #2
0
        public void GetByMarkId_ShouldReturnMarkOperatingConditions()
        {
            // Arrange
            int markId = _rnd.Next(1, _maxMarkId);

            // Act
            var markOperatingConditions = _service.GetByMarkId(markId);

            // Assert
            Assert.NotNull(markOperatingConditions);
        }