Ejemplo n.º 1
0
 public CinemaController
 (
     ISqlCinemaService sqlCinemaService,
     ISqlRoomService sqlRoomService
 )
 {
     _sqlCinemaService = sqlCinemaService;
     _sqlRoomService   = sqlRoomService;
 }
Ejemplo n.º 2
0
 public MovieController
 (
     ISqlMovieService sqlMovieService,
     ISqlPremiereService sqlPremiereService,
     ISqlRoomService sqlRoomService,
     ISqlMovieRoomService sqlMovieRoomService,
     IWebHostEnvironment webHostEnvironment)
 {
     _sqlMovieService     = sqlMovieService;
     _sqlPremiereService  = sqlPremiereService;
     _sqlRoomService      = sqlRoomService;
     _sqlMovieRoomService = sqlMovieRoomService;
     _webHostEnvironment  = webHostEnvironment;
 }
Ejemplo n.º 3
0
        public MovieControllerTest()
        {
            _sqlMovieService     = new SqlMovieService(_dbContext);
            _sqlPremiereService  = new SqlPremiereService(_dbContext);
            _sqlRoomService      = new SqlRoomService(_dbContext);
            _sqlMovieRoomService = new SqlMovieRoomService(_dbContext);

            _movieController = new MovieController
                               (
                _sqlMovieService,
                _sqlPremiereService,
                _sqlRoomService,
                _sqlMovieRoomService,
                _webHostEnvironment
                               );
        }
Ejemplo n.º 4
0
 public CinemaControllerTest()
 {
     _sqlCinemaService = new SqlCinemaService(_dbContext);
     _sqlRoomService   = new SqlRoomService(_dbContext);
     _cinemaController = new CinemaController(_sqlCinemaService, _sqlRoomService);
 }
Ejemplo n.º 5
0
 public SqlRoomServiceTest()
 {
     _sqlRoomService   = new SqlRoomService(_dbContext);
     _sqlCinemaService = new SqlCinemaService(_dbContext);
 }
Ejemplo n.º 6
0
 public RoomControllerTest()
 {
     _sqlRoomService   = new SqlRoomService(_dbContext);
     _sqlCinemaService = new SqlCinemaService(_dbContext);
     _roomController   = new(_sqlCinemaService, _sqlRoomService);
 }