Question: 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)

In C#, please! (Microsoft visual studio) a) Suppose there is a Product

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!