Create a class diagram of the intial code

Assignment Help Database Management System
Reference no: EM13316681

Disclaimer

You must use the code supplied by your tutor. Do not use code given to you by another student (or past student) as the codebase will be different and you will be awarded ZERO MARKS for the assignment task.

Description

  • You are required to document, test and refactor an existing application.

 
You will be given a copy of an existing C# application which is responsible for taking bookings for a hospital system, this application is badly in need of refactoring and even a casual viewing of the source code reveals many examples of the "code smells" talked about in Fowler's book.

The base application consists of three classes - Doctor, Patient and Hospital. A patient can be a private or public patient and is handled differently in either case. Patients are assigned to Doctors according to availability and preference.

Step 1 - Rename the base code

1.  Download the code from Moodle and unzip it in the filesystem
2.  Rename the base folder to "Assignment 1 - yourid" (your id equals your student number)
3.  Open the solution up in Visual Studio right click on the Solution and rename it as per (2)
4.  Build the solution and inspect the output, now spend some time getting to know the code before you do anything else. 

Step 2 - Identify "code smells"
Open up a new document in Word (or equivalent), start jotting down any code smells you identify in the code in point form (you might want to cut and paste the code into word to illustrate the problems.

Step 3 - Create a class diagram of the intial code.

Do this in Enterprise Architect and copy the resultant diagram into your word file. Ensure your EA file is saved and labelled as "starting code base"

Step 4 - Start refactoring and developing your unit tests

Ensure that your starting code and EA file is backed up, and once this is done jump back into Visual Studio and get to work refactoring.

Your final code should be fully refactored and have unit tests developed for every method (other than ToString and Get and Set methods).


Attachment:- ASSIGNMENT.rar

Reference no: EM13316681

Questions Cloud

Explain how zoroastrianism acts-eastern and western religion : Explain how Zoroastrianism acts like a bridge between Eastern and Western religions. Discuss possible contributions or influences Zoroastrianism may have had on any other religions with which you are familiar. Provide a rationale which you think expl..
For what flowrate through the venturi meter will cavitation : for what flowrate through the Venturi meter will cavitation begin if p1=275 kPa gage, atmospheric pressure is 101 kPa (abs) and the vapor pressure is 3,6 kPa (abs)
What is its cop operated as a refrigerator : If the efficiency of a reversible engine is 28.%, what is its COP operated as a refrigerator
Aggregate demand and aggregate supply schedules : Suppose that the aggregate demand and aggregate supply schedules for a hypothetical economy are as shown at the top left of the next page. LO3 a. Use the data above to graph the aggregate demand and aggregate supply curves.
Create a class diagram of the intial code : The base application consists of three classes - Doctor, Patient and Hospital. A patient can be a private or public patient and is handled differently in either case. Patients are assigned to Doctors according to availability and preference.
Find the velocity of toyota prius relative to the vw passat : A Toyota Prius driving north at 56.0mph and a VW Passat driving south at 38.0 mph are on the same road heading toward each other, What is the velocity of Toyota Prius relative to the VW Passat
Find the find the force of cd and force acting at a and b : Draw the free-body diagram of member ABC which is supported by a smooth collar at A, rocker at B, and Find the Find the force of CD, and the force acting at point A & B
Advanced analysis assume that consumption schedule : Advanced analysis Assume that the consumption schedule for a private open economy is such that consumption C = 50 + 0.8Y. Assume further that planned investment Ig and net exports Xn are independent of the level of real GDP and constant at Ig = 30 an..
What is the average force felt by tennis ball : What is the average force felt by a 0.06 kg tennis ball if it strikes the racket at a speed of 30m/s and leaves the racket with a speed of 50m/s in the opposite direction

Reviews

Write a Review

Database Management System Questions & Answers

  Determine airports with late flights to toronto-database

Determine airports with late flights to Toronto on a big plane. "Late" means departing after 9:00pm; "big" means with capacity 150 passengers or more

  Find average number of books borrowed per member

Find the average number of books borrowed per member. Take into account that if a member does not borrow any books, then that member does not appear in the borrowed relation at all.

  Explaining content of document in natural language

Explain the content of this document in natural language;Design the graph representation of document;

  Describing the purpose of database an its functionality

Describing the purpose of database an its functionality, plus a detailed E-R diagram.

  Write candidate keys and referential integrity constraints

Transform the tables into one or more tables in BCNF. Write the primary keys, candidate keys, and referential integrity constraints.

  Design a dss to help decision-makers

Design a DSS to help decision-makers run the 2012 London Olympics-Write down the step-by-step solution to train the classifier by the basic perceptron learning rule.

  Design of a data warehouse

Enterprises are accumulating substantial amounts of data that are necessary for their business operations.

  Create the digitalx database

Create the DigitalX database. Design tables and relationships and ensure that email addresses may only be used once in the database.

  Database management challenge than relational database

What is it about a 200 MB video or audio file which makes it so much more of database management challenge than relational database the same size?

  Research paper on the turing and von neumann models

Write a two page research paper on the Turing and von Neumann models.

  Provide an expression in relational algebra

Provide expression in relational algebra for each of the following queries: Give all the managers in database a 10 percent salary raise. Give all the other employees a 5 percent salary raise.

  Delete an existing product from the database

Utilise an include statement to refer to connection.php instead of the long version of the database connection code so that you can keep the database more secure. See Notes for more details.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd