public void TestInitialize()
        {
            _db = new BookingContext(_testDBConnectionString);

            //SQL Compact needs to have an open connection before we can start transaction. (Had to stackOverflow this one)
            ((IObjectContextAdapter)_db).ObjectContext.Connection.Open();

            //Transaction to clean up between each test.
            _transaction = new TransactionScope();
        }
Esempio n. 2
0
 public override void EnterState(BookingContext bookingContext)
 {
     bookingContext.ShowState("Booked");
     bookingContext.View.ShowStatusPage("Enjoy the event");
 }
Esempio n. 3
0
 public override void DatePassed(BookingContext bookingContext)
 {
     bookingContext.TransitionToState(new ClosedState("We hope you Enjoyed the event"));
 }
Esempio n. 4
0
 public UserService(BookingContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 5
0
 public BookingsController(BookingContext context)
 {
     _context = context;
 }
Esempio n. 6
0
 public override void Cancel(BookingContext booking)
 {
     booking.View.ShowError("Cannot cancel closed booking!", "Closed Booking Error");
 }
Esempio n. 7
0
 public override void EnterDetails(BookingContext booking, string attendee, int ticketCount)
 {
     booking.View.ShowError("Invalid action for this case", "Closed Booking Error");
 }
Esempio n. 8
0
 public HomeController(BookingContext context)
 {
     _context = context;
 }
Esempio n. 9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="context"></param>
 public Repository(BookingContext context)
 {
     _dbSet = context.Set <TEntity>();
 }
Esempio n. 10
0
 public PerformancesController(BookingContext context)
 {
     _context = context;
 }
Esempio n. 11
0
 public TipoQuartoesController(BookingContext context)
 {
     _context = context;
 }
Esempio n. 12
0
 public DomainEventsDispatcher(BookingContext ctx, IMediator mediator, IAssemblyProvider assemblyProvider)
 {
     this.ctx              = ctx;
     this.mediator         = mediator;
     this.assemblyProvider = assemblyProvider;
 }
Esempio n. 13
0
 public BookingRepository(BookingContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Esempio n. 14
0
        public AuthorizeController(ILogger <AuthorizeController> logger, BookingContext bookingContext)
        {
            this.Logger = logger;

            this.BookingContext = bookingContext;
        }
 public EspecificacoesQuartoesController(BookingContext context)
 {
     _context = context;
 }
 public BookingModelsController(BookingContext context, ILogger <BookingModelsController> logger)
 {
     _context    = context;
     this.logger = logger;
 }
 private void btnCreate_Click(object sender, RoutedEventArgs e)
 {
     booking = new BookingContext(this);
 }
 public ReservationRepository(BookingContext bookingContext)
 {
     _bookingContext = bookingContext;
 }
Esempio n. 19
0
 public override void DatePassed(BookingContext booking)
 {
     booking.View.ShowError("Invalid action for this case", "Closed Booking Error");
 }
Esempio n. 20
0
 public UserProvider(BookingContext context)
 {
     _context = context;
 }
Esempio n. 21
0
 public override void EnterState(BookingContext booking)
 {
     booking.ShowState("Closed");
     booking.View.ShowStatusPage(_reasonClosed);
 }
Esempio n. 22
0
 public abstract void EnterState(BookingContext booking);
Esempio n. 23
0
 public CategoryModelsController(BookingContext context, ILogger <CategoryModelsController> logger)
 {
     _context    = context;
     this.logger = logger;
 }
Esempio n. 24
0
 public abstract void Cancel(BookingContext booking);
Esempio n. 25
0
 public override void EnterDetails(BookingContext bookingContext, string atendee, int ticketCount)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 26
0
 public abstract void DatePassed(BookingContext booking);
Esempio n. 27
0
 public override void Cancel(BookingContext bookingContext)
 {
     bookingContext.TransitionToState(new ClosedState("Booking canceled:  Expect a refund"));
 }
Esempio n. 28
0
 public abstract void EnterDetails(BookingContext booking, string attendee, int ticketCount);
 public ServicosHotelsController(BookingContext context)
 {
     _context = context;
 }
Esempio n. 30
0
 public GenericRepository(BookingContext context)
 {
     _context = context;
 }
 public void DropCreateDatabaseIfModelChanges()
 {
     var dbContext = new BookingContext();
     var listOfPanels = dbContext.TblCustomerBookings.ToList();
 }
Esempio n. 32
0
 public AirportRepo(BookingContext context)
 {
     _context = context;
 }