public async Task GetAllByLimit_NotNull() { int limit = 10; _eventoRepositoryMock.Setup(x => x.GetAllByLimit(limit)) .ReturnsAsync(new EventoMock().GetEventos()); var eventoService = new EventoService(_eventoRepositoryMock.Object); var eventoMethod = await eventoService.GetAllByLimit(limit); var eventoResult = Assert.IsAssignableFrom <IEnumerable <Evento> >(eventoMethod); Assert.NotNull(eventoResult); }