public void GetTicketDetailsShouldWorkCorrectly()
        {
            var options = new DbContextOptionsBuilder <ApplicationDbContext>()
                          .UseInMemoryDatabase(databaseName: "TicketTest1").Options;

            var dbContext = new ApplicationDbContext(options);

            AutoMapperConfig.RegisterMappings(typeof(ErrorViewModel).GetTypeInfo().Assembly);

            var ticketsRepository     = new EfRepository <Ticket>(dbContext);
            var projectionsRepository = new EfRepository <Projection>(dbContext);
            var hallsRepository       = new EfRepository <Hall>(dbContext);
            var seatsRepository       = new EfRepository <Seat>(dbContext);
            var moviesRepository      = new EfRepository <Movie>(dbContext);
            var ciemasRepository      = new EfRepository <Cinema>(dbContext);

            var service = new TicketsService(
                ticketsRepository,
                projectionsRepository,
                hallsRepository,
                seatsRepository,
                moviesRepository,
                ciemasRepository);

            ticketsRepository.AddAsync(this.TicketTest()).GetAwaiter().GetResult();
            ticketsRepository.SaveChangesAsync().GetAwaiter().GetResult();

            var ticketViewModel = service.GetTicketDetails(1);

            Assert.IsType <TicketViewModel>(ticketViewModel);
            Assert.Equal(0, ticketViewModel.OccupiedSeats.Count);
            Assert.Equal(10, ticketViewModel.Price);
        }