Skip to content

Latest commit

 

History

History
90 lines (74 loc) · 1.27 KB

09-together.md

File metadata and controls

90 lines (74 loc) · 1.27 KB

09 - Putting it All Together

Example diagrams for module 9 - Putting it All Together

Diagram

classDiagram
	class Customer {
		FirstName
		LastName
		PhoneNumber
	}
	Customer "1" --> "*" Vehicle

	class Vehicle {
		Year
		Make
		Model
		Odometer
	}
	Vehicle "1" --> "*" RepairOrder

	class RepairOrder {
		Repair[]
	}
	RepairOrder "1" --> "*" Repair
	RepairOrder "1" --> "*" Quote

	class Repair {
		Code
		Category
		Name
		Part[]
		Labor
	}
	Repair "*" --> "*" Part

	class Part {
		Name
		StockNumber
		Price
	}

	class Quote {
		PartTotal
		LaborTotal
		RepairOrder
		ExpiryDate
		ToString()
	}

	class IQuoteService {
		<<interface>>
		GenerateQuote(RepairOrder) Quote
	}

	class QuoteService {
		GenerateQuote(RepairOrder) Quote
	}
	QuoteService --|> IQuoteService : implements
	QuoteService --> IWarrantyService : uses

	class IWarrantyService {
		<<interface>>
	}

	class WarrantyService {
	}
	WarrantyService --|> IWarrantyService : implements

	class Warranty {
		<<abstract>>
		Duration
		Odometer
		IsCovered(Vehicle, Repair)
	}

	class BumperToBumperWarranty {
	}
	BumperToBumperWarranty --|> Warranty : Inherits

	class PowertrainWarranty {
	}
	PowertrainWarranty --|> Warranty : Inherits

	class EmissionsWarranty {
	}
	EmissionsWarranty --|> Warranty : Inherits
Loading