Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please do testing in C#. Develop the required unit tests for the following classes in your library: SalesQuote CarWashInvoice Financial Create a new unit test
Please do testing in C#.
Develop the required unit tests for the following classes in your library:
SalesQuote
CarWashInvoice
Financial
Create a new unit test class for each class you are testing. Ensure that all method outcomes are tested, including exceptions.
Documentation is not required for unit test class or methods.
SalesQuote - vehicleSalePrice : decimal - tradelnAmount : decimal - salesTaxRate : decimal - accessoriesChosen : Accessories - exteriorFinishChosen : ExteriorFinish +> VehicleSalePrice : decimal +> TradelnAmount : decimal +> AccessoriesChosen : Accessories +> ExteriorFinishChosen : ExteriorFinish +> AccessoryCost : decimal +> FinishCost : decimal +> TotalOptions : decimal + SubTotal : decimal +> SalesTax : decimal +> Total : decimal + AmountDue : decimal +SalesQuote(vehicleSalePrice : decimal, tradelnAmount : decimal, salesTaxRate : decimal, accessoriesChosen : Accessories, exteriorFinishChosen : ExteriorFinish) +SalesQuote(vehicleSalePrice : decimal, tradelnAmount : decimal, salesTaxRate : decimal) CarWashlnvoice - packageCost : decimal - fragranceCost : decimal + PackageCost : decimal +> FragranceCost : decimal +> ProvincialSalesTaxCharged : decimal +> GoodsAndServicesTaxCharged : decimal +> SubTotal : decimal +CarWashlnvoice(provincialSalesTaxRate : decimal, goodsAndServicesTaxRate : decimal) +CarWashInvoice(provincialSalesTaxRate : decimal, goodsAndServicesTaxRate : decimal, packageCost : decimal, fragranceCost : decimal) "static" Financial +GetPayment (rate : decimal,_numberOfPaymentPeriods: int,_presentValue : decimal) : decimal
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started