Пример #1
0
 public UZBookingRepository(Ticket ticket, UZAPIConfig apiConfig)
 {
     //TODO: maybe possible to instanse context whith Trip and forward it to repository?
     _dataContext = new UZDataContext(ticket, apiConfig);
     _placesSets  = new List <UZPlacesSet>();
 }
Пример #2
0
 public BookingController()
 {
     _api           = new UZAPIConfig();
     ViewBag.Places = new Dictionary <string, int>();
 }
Пример #3
0
 public UZDataContext(Ticket ticket, UZAPIConfig apiConfig)
 {
     _translator = new UZDomainTranslator(ticket);
     _gateway    = new UZDataGateway(apiConfig);
 }