Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I n C#, please! (Microsoft visual studio) a) Suppose there is a Product class with the following fields: Productld : int Product Name : string

In C#, please! (Microsoft visual studio)

image text in transcribed

a) Suppose there is a Product class with the following fields: Productld : int Product Name : string Price : decimal Category : an enum which can have one of the three possibilities of SPORTS, BOOKS, ELECTRONICS Description : string An example of a Product object will be {12341, "Calculator, 24.95m, ELECTRONICS, Solar powered Scientific"} Suppose there is an Online Store class that has an array of Products. Initialize 3 products belonging to each category of SPORTS, BOOKS and ELECTRONICS (total of 9 products in the constructor for OnlineStore). Then develop the following indexers in a Test Driven Development (TDD) style. 1. Search by Productld 2. Search by ProductName 3. Search by partial description e.g., if you searched by "solar, the calculator will match. 4. Search by category. Note that the search by partial description and search by category will return an array of products. Show the unit tests for all above cases

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

=+ Why is it important for IHRM to be strategic?

Answered: 1 week ago