Scroll to the bottom of this assignment to download a starting point for the test.
This test is "open book", meaning you can use any resources other than classmates as an aid to completing the test.
This test is based off of the work completed as part of the assignments from Learning Plans 1 through 3.
To increase your chances of successfully completing the test, complete each of the sections of the test before moving on to the next, as subsequent steps build upon the work completed in earlier steps.
Use the debugger to confirm that your results are as expected.
3.1 Theater Test: Class Diagram
Implement the changes specified in the following UML class diagram.
When creating classes be sure to:
Ensure the class in the root namespace. This can be done in one of two ways. Either by adding the class in the project, i.e. scenario, or by adding the class to the business classes folder and removing the ".Business_Classes" designation from the namespace.
Open the main window (MainWindow.xaml) in designer mode (right-click and click "View Designer" or press Shift-F7 to go to designer mode).
3.1 Theater Test: Object Diagram
Instantiate the objects and set their field values as specified in the following UML object diagram.
3.1 Theater Test: Final Steps
Button details:
Write code in the "Find The Godfather's rating" button to find the rating of The Godfather and store it in a local variable.
Write code in the "Calculate average movie runtime" button to find the average runtime of all movies and store it in the corresponding field of the theater.
Test script:
Click the "New theater" button.
Click the "Find The Godfather's rating" button.
Use the debugger to ensure the rating was returned correctly to a local variable.
Click the "Calculate average movie runtime" button.
Use the debugger to ensure the average runtime was set correctly on the Theater object.
Starting Zip File
Unzip the Test 1 zip file, rename both the folder and the solution file to contain your last name, and use it as the starting point for your test.
Test Rubric
Test, Complete and Submit
Build your program - Eliminate compiler errors and warnings
Debug/Test your program - Set breakpoints, step through code, monitor values
Make your code StyleCop-compliant
Close your Visual Studio solution.
Compress your Visual Studio solution to a zip file.