Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            // Create Reservation and FlightSchedules
            FileCreater.CreateBothFiles();


            manager.StartSimulation();

            manager.UpdateGates += Manager_UpdateGates;

            SplitterluggageListView.ItemsSource = new List <SortingSystem>()
            {
                manager.SortingSystem
            };
        }
Exemplo n.º 2
0
 public void WhenFileCorruptedThenThrowException()
 {
     Assert.Throws <ApplicationException>(() => FileCreater.GetDirectory(""));
 }
Exemplo n.º 3
0
 public void WhenFileArgumentIsAcceptedThenCreateNewFile()
 {
     FileCreater.GetDirectory(_fileName);
     Assert.True(File.Exists(GetPath(_fileName)));
     Assert.Equal(0, new FileInfo(GetPath(_fileName)).Length);
 }