public IHttpActionResult GetInstruments() { _loggingService.LogInfo("Obtaining a list of instruments from Cati"); var instruments = _catiService.GetCatiInstruments().ToList(); _loggingService.LogInfo($"Successfully received {instruments.Count} instruments from Cati"); return(Ok(instruments)); }
public void Given_I_Call_GetCatiInstruments_Then_I_Get_A_List_Of_CatiInstrumentDto_Back() { //act var result = _sut.GetCatiInstruments(); //assert Assert.IsNotNull(result); Assert.IsInstanceOf <List <CatiInstrumentDto> >(result); }
public void Given_I_Call_GetCatiInstruments_Then_I_Get_A_List_Of_CatiInstrumentDto_Back() { //arrange _serverParkServiceMock.Setup(i => i.GetServerParks()).Returns(new List <ServerParkDto>()); //act var result = _sut.GetCatiInstruments(); //assert Assert.IsNotNull(result); Assert.IsInstanceOf <List <CatiInstrumentDto> >(result); }