C# & .NET program that allows the user to order Bread/Pastries from Pierre's Bakery. The program will prompt the user for how many loaves of bread, and how many pastries they would like to buy. Then, the program takes those 2 inputs and calculates the order total for the customer - including Buy Two Get One Free discounts.
By Austin Schrader
This project was created by Austin Schrader for the week 8 of independent project using C# and uses C#/.NET. The objective was to build a console bakery console application.
C# and .NET needs to be installed for this project to work. If you do not have it, please go to here for Windows and here for MacOS.
- Download this repository by clicking the "Clone or Download" button
- Navigate to the folder where it downloaded
- Now open your terminal and navigate to Bakery.Solution > Bakery.Tests
- Type in
dotnet restore
to download necessary packages - Then type in
dotnet run
to run the application - Congratulations, this is the program!
- To get an output, enter 3 values one-at-a-time
Describe: PastryOrderCalc()
Test: "should correctly output the total for the cost of the pastries that the customer has ordered" Expect: (newPastry.PastryOrderCalc(3).toEqual(5));
Describe: BreadOrderCalc()
Test: "should correctly output the total for the cost of the bread that the customer has ordered" Expect: (newPastry.BreadOrderCalc(3).toEqual(15));
At this time, there are no known bugs. If you see spot a bug feel free to make a pull request.
- C#
- .NET
- Object Oriented Programming
- MSTest
This repository is licensed under the MIT license.
Copyright (c) 2020 by Austin Schrader