コード例 #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);
 }