public void AuditoriumsService_GetAuditoriumByIdAsync_ReturnNull()
        {
            //Arrange
            Auditorium        auditorium   = null;
            Task <Auditorium> responseTask = Task.FromResult(auditorium);

            _mockAuditoriumsRepository = new Mock <IAuditoriumsRepository>();
            _mockAuditoriumsRepository.Setup(x => x.GetByIdAsync(It.IsAny <int>())).Returns(responseTask);
            AuditoriumService auditoriumController = new AuditoriumService(_mockAuditoriumsRepository.Object, _mockCinemasRepository.Object, _mockSeatsRepository.Object, _mockProjectionRepository.Object, _mockTicketService.Object);
            //Act
            var resultAction = auditoriumController.GetAuditoriumByIdAsync(It.IsAny <int>()).ConfigureAwait(false).GetAwaiter().GetResult();

            //Assert
            Assert.IsNull(resultAction);
        }
        public void AuditoriumsService_GetAuditoriumByIdAsync_ReturnAuditoriumDomainModel()
        {
            //Arrange
            Auditorium        auditorium   = _auditorium;
            Task <Auditorium> responseTask = Task.FromResult(auditorium);

            _mockAuditoriumsRepository = new Mock <IAuditoriumsRepository>();
            _mockAuditoriumsRepository.Setup(x => x.GetByIdAsync(It.IsAny <int>())).Returns(responseTask);
            AuditoriumService auditoriumController = new AuditoriumService(_mockAuditoriumsRepository.Object, _mockCinemasRepository.Object, _mockSeatsRepository.Object, _mockProjectionRepository.Object, _mockTicketService.Object);
            //Act
            var resultAction = auditoriumController.GetAuditoriumByIdAsync(It.IsAny <int>()).ConfigureAwait(false).GetAwaiter().GetResult();

            //Assert
            Assert.IsNotNull(resultAction);
            Assert.IsInstanceOfType(resultAction, typeof(AuditoriumDomainModel));
            Assert.AreEqual(resultAction.CinemaId, auditorium.CinemaId);
        }