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

  Design of a data warehouse

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

  Create a database.

Create a database.

  What is the two-phase locking protocol

What is the two-phase locking protocol and what is the strict two-phase locking protocol? What is the rigorous two-phase locking protocol? What benefit does strict two-phase locking protocol provide? What benefit does rigorous two-phase locking pr..

  Write select statement which returns three columns

Write a SELECT statement which returns three columns: VendorName, InvoiceCount, and InvoiceSum. InvoiceCount is the count of the number of invoices, and InvoiceSum is the sum of the InvoiceTotal column.

  Produce an entity-relationship diagram

Produce an Entity-Relationship diagram which represents the above activities of the insurance company. Indicate the names and degrees of all the relationships. Give appropriate attributes for each entity shown, and identify the primary key for eac..

  Estimate the height of the b plus tree

Estimate the height of the B+ tree. (Giving a range of heights is fine.) Also estimate the amount of memory needed to store the tree, including leaves but not including the posting lists themselves.

  Use sql to create database

Use SQL to create the following database; to including referential integrity. You may NOT use the GUI for this part of the exercise. COURSE ( CourseNu, CourseName, CreditHrs).

  Advantages and disadvantages of working with multiple tables

Write down the advantages and disadvantages of working with multiple tables? Write an example of situation where multiple tables would be suitable in the application.

  Draw the e/r diagrams for the business rules

Draw the E/R diagrams for the business rules

  Draw an entity relationship diagram for the system

Draw an Entity Relationship diagram for the system and Identify the table design for the database displaying all the fields/attributes. Ensure that all tables are in 3NF. You also need to identify the primary keys and foreign keys, where applicable..

  Write sql queries for the books database

Write SQL queries for the books database that perform each of the following tasks: Select all authors from the Authors table with the columns in the order lastName, firstName and authorID.

  Knowledge and data warehousing

Knowledge and Data Warehousing

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