private void reservationButton_Click(object sender, EventArgs e) { BookingService booking = BookingServiceImpl.GetService(); ArrayList array = new ArrayList(); array.Add((int)seatsNumerField.Value); booking.BookingSeats(seance, array); }
public void setUp() { cargoRepository = MockRepository.GenerateMock <CargoRepository>(); locationRepository = MockRepository.GenerateMock <LocationRepository>(); routingService = MockRepository.GenerateMock <RoutingService>(); trackingIdFactory = MockRepository.GenerateMock <TrackingIdFactory>(); bookingService = new BookingServiceImpl(routingService, trackingIdFactory, cargoRepository, locationRepository); }