public void Setup()
 {
     _ticketPurchaseRepository = new MockTicketPurchaseRepository();
     _connectionString         = "User ID=developer;Password=password;Connect Timeout=0;Application Name=EntityFramework";
     _tenantId = 1368421345;
     _numberOfTicketPurchases = 1;
 }
예제 #2
0
        public FindSeatsController(IEventSectionRepository eventSectionRepository, ISectionRepository sectionRepository, IEventsRepository eventsRepository, ITicketRepository ticketRepository, ITicketPurchaseRepository ticketPurchaseRepository, IHelper helper, IStringLocalizer <FindSeatsController> localizer, IStringLocalizer <BaseController> baseLocalizer) : base(baseLocalizer, helper)
        {
            _eventSectionRepository    = eventSectionRepository;
            _sectionRepository         = sectionRepository;
            _eventsRepository          = eventsRepository;
            _ticketRepository          = ticketRepository;
            _iTicketPurchaseRepository = ticketPurchaseRepository;
            _localizer = localizer;

            Thread.CurrentThread.CurrentCulture   = CultureInfo.CreateSpecificCulture(Startup.TenantConfig.TenantCulture);
            Thread.CurrentThread.CurrentUICulture = new CultureInfo(Startup.TenantConfig.TenantCulture);
            _connectionString = helper.GetBasicSqlConnectionString(Startup.DatabaseConfig);
        }