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(); }
public override void EnterState(BookingContext bookingContext) { bookingContext.ShowState("Booked"); bookingContext.View.ShowStatusPage("Enjoy the event"); }
public override void DatePassed(BookingContext bookingContext) { bookingContext.TransitionToState(new ClosedState("We hope you Enjoyed the event")); }
public UserService(BookingContext dbContext) { _dbContext = dbContext; }
public BookingsController(BookingContext context) { _context = context; }
public override void Cancel(BookingContext booking) { booking.View.ShowError("Cannot cancel closed booking!", "Closed Booking Error"); }
public override void EnterDetails(BookingContext booking, string attendee, int ticketCount) { booking.View.ShowError("Invalid action for this case", "Closed Booking Error"); }
public HomeController(BookingContext context) { _context = context; }
/// <summary> /// /// </summary> /// <param name="context"></param> public Repository(BookingContext context) { _dbSet = context.Set <TEntity>(); }
public PerformancesController(BookingContext context) { _context = context; }
public TipoQuartoesController(BookingContext context) { _context = context; }
public DomainEventsDispatcher(BookingContext ctx, IMediator mediator, IAssemblyProvider assemblyProvider) { this.ctx = ctx; this.mediator = mediator; this.assemblyProvider = assemblyProvider; }
public BookingRepository(BookingContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
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; }
public override void DatePassed(BookingContext booking) { booking.View.ShowError("Invalid action for this case", "Closed Booking Error"); }
public UserProvider(BookingContext context) { _context = context; }
public override void EnterState(BookingContext booking) { booking.ShowState("Closed"); booking.View.ShowStatusPage(_reasonClosed); }
public abstract void EnterState(BookingContext booking);
public CategoryModelsController(BookingContext context, ILogger <CategoryModelsController> logger) { _context = context; this.logger = logger; }
public abstract void Cancel(BookingContext booking);
public override void EnterDetails(BookingContext bookingContext, string atendee, int ticketCount) { throw new System.NotImplementedException(); }
public abstract void DatePassed(BookingContext booking);
public override void Cancel(BookingContext bookingContext) { bookingContext.TransitionToState(new ClosedState("Booking canceled: Expect a refund")); }
public abstract void EnterDetails(BookingContext booking, string attendee, int ticketCount);
public ServicosHotelsController(BookingContext context) { _context = context; }
public GenericRepository(BookingContext context) { _context = context; }
public void DropCreateDatabaseIfModelChanges() { var dbContext = new BookingContext(); var listOfPanels = dbContext.TblCustomerBookings.ToList(); }
public AirportRepo(BookingContext context) { _context = context; }