public void GetAllAConcertDtos_ShouldReturnAllDtosOfConcerts() { repositoryMock.Setup(x => x.GetAll <Concert>()).Returns(concerts); var expectedResult = concertLogic.GetAll(); Assert.IsInstanceOfType(expectedResult, typeof(List <ConcertDto>)); repositoryMock.Verify(r => r.GetAll <Concert>(), Times.Once); }
public ActionResult <ICollection <ConcertDto> > GetAll() { var concerts = _concertLogic.GetAll(); return(Ok(concerts)); }