public async Task GetEventsRelatedData_WhenEventsFound_ShouldReturnAllEventsWithRelatedTable() { //Arrange _repository.Setup(p => p.Events.GetEventsRelatedData()).ReturnsAsync(_events); var processor = new EventProcessor(_repository.Object); //Act var response = await processor.GetEventsRelatedData(null); //Assert Assert.NotEmpty(response); }