public void Init()
 {
     _integerSequenceGenerator=Substitute.For<IIntegerSequenceGenerator>();
     _cargoBookings = new CargoBookings(_integerSequenceGenerator, _bookingRepository, _console);
     _vesselA = new Vessel.Vessel(new CubicFeet(900));
     _smallCargo = new Cargo.Cargo(new CubicFeet(200));
     _bigCargo = new Cargo.Cargo(new CubicFeet(1200));
 }
 public void GivenCargoBookingsExist()
 {
     _integerSequenceGenerator = Substitute.For<IIntegerSequenceGenerator>();
     _cargoBookings = new CargoBookings(_integerSequenceGenerator, _bookingRepository, _console);
 }
예제 #3
0
 public CargoBookings(IIntegerSequenceGenerator integerSequenceGenerator, IBookingRepository bookingRepository, IBookingConsole console)
 {
     _integerSequenceGenerator = integerSequenceGenerator;
     _bookingRepository = bookingRepository;
     _console = console;
 }