public ActionResult <MarkOperatingConditionsResponse> GetByMarkId(int markId) { var markOperatingConditions = _service.GetByMarkId(markId); if (markOperatingConditions != null) { return(Ok(_mapper.Map <MarkOperatingConditionsResponse>(markOperatingConditions))); } return(NotFound()); }
public void GetByMarkId_ShouldReturnMarkOperatingConditions() { // Arrange int markId = _rnd.Next(1, _maxMarkId); // Act var markOperatingConditions = _service.GetByMarkId(markId); // Assert Assert.NotNull(markOperatingConditions); }