Exemple #1
0
        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);
        }
Exemple #2
0
        public ActionResult <ICollection <ConcertDto> > GetAll()
        {
            var concerts = _concertLogic.GetAll();

            return(Ok(concerts));
        }