Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

CarWashInvoice

image text in transcribed

Financial

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2018 Dublin Ireland September 10 14 2018 Proceedings Part 1 Lnai 11051

Authors: Michele Berlingerio ,Francesco Bonchi ,Thomas Gartner ,Neil Hurley ,Georgiana Ifrim

1st Edition

3030109240, 978-3030109240

More Books

Students also viewed these Databases questions

Question

part 4 eigenvalues and eigenverctors

Answered: 1 week ago

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago