require 'controller/action'
require 'controller/administration_controller'

require 'airline'
require 'airplane'
require 'person'

require 'auditor'

ba = Airline.new

File.open("airplanes.xml","r") do |file|
  ba.xml_read_airplanes(file)  
end

File.open("employees.xml","r") do |file|
  ba.xml_read_employees(file)
end

auditor = Auditor.new
AdministrationController.new.run(auditor,ba)

File.open("airplanes.xml","w") do |file|
  ba.xml_write_airplanes(file)
end

File.open("employees.xml","w") do |file|
  ba.xml_write_employees(file)
end