public void ProjectionService_GetProjectionsByAuditoriumId_WrongId_ReturnEmptyList() { // Arrange ProjectionService projectionsService = new ProjectionService(_mockProjectionsRepository.Object, _mockReservationService.Object); List <Projection> projectionsModelsList = new List <Projection>(); _mockProjectionsRepository.Setup(x => x.GetByAuditoriumId(It.IsAny <int>())).Returns(projectionsModelsList); //Act var resultAction = projectionsService.GetProjectionsByAuditoriumId(_projection.AuditoriumId).ConfigureAwait(false).GetAwaiter().GetResult().ToList(); //Assert Assert.IsNotNull(resultAction); Assert.AreEqual(resultAction.Count, 0); Assert.IsInstanceOfType(resultAction, typeof(List <ProjectionDomainModel>)); }