As an air traffic controller So I can get passengers to a destination
As an air traffic controller So I can get passengers on the way to their destination
I want to instruct a plane to take off from an airport and confirm that it is no longer in the airport
As an air traffic controller To ensure safety
As the system designer So that the software can be used for many different airports
As an air traffic controller To ensure safety
As an air traffic controller To ensure safety
- I want to prevent takeoff when weather is stormy
- I want to prevent landing when weather is stormy
- Feature test creation of a new airport
- Write test to duplicate the error
- Write enough code to get the test to pass
- push to GH repo
- Now we have an airport, FT a plane landing
- I want to use airport.land and have that take an argument of plane.
- I will write a UT for this and watch it fail.
- I will write code to pass this test and watch test pass.
- Now we have an airport.land, FT a plane taking off.
- Before FT I want to change code to better label the land method.
- .land will be .arrival
- Write UT for plane.depart with one argument of plane and watch it fail.
- Write code to pass the test.
- push to GH repo
- In order to track whether and airport is full I will need some way of tracking this.
- I want to use an array to track this so I want to FT using an array to store landed places and to be able to read the array contents when called.
- I will design a UT to test for whether hangar can be called on aiport and whether, when initialized, the hanger capacity should be at zero and watch it fail.
- Now write the code to pass the tests.
- I also want to write a UT to make sure that when a plane arrives and leave this is recorded in the hangar array and can be displayed.
- Pass these tests.
- I order to meet the brief I will impose a maximum capicity of 5 to the airport so that point three in the TaskList will be met.
- First I want to test when I give the hangar 3 planes and 5 planes (capacity) no issues arise.
- The tests both pass as no limit has yet been imposed.
- Now I want to raise an error when planes are added and the hangar is at capacity.
- I will UT this.
- I will write an if/else statement to check hangar before allowing planes.
- Watch the test pass.
- UT for edge cases and try to pass one thousand planes into the array and see if that causes the error to be raised.
- push to GH repo
- I want, when the new airport is initialized for a hangar size to be provided by the user and if no hangar size then a default size.
- My previous UTs tell me that there is a capacity of five currently set. I now want initialize to take a argument and i will FT this.
- refactor tests to use subject and set a paramter for capacity.
- UT for default capacity being used to determine capacity and UT to test for specified capacity and check UTs pass.
- push to GH repo