public void BookCargo(Cargo.Cargo cargo, Vessel.Vessel vessel) { try { vessel.Add(cargo); _bookingRepository.Add( new Booking( cargo, vessel, new ConfirmationNumber(_integerSequenceGenerator.GetNext()))); } catch (CargoExceedesVesselCapacityException ex) { _console.WriteLine(ex.Message); } }