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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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