Skip to content

Zahnen/bakery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Zahnen's Bakery

A console application using C#, December 11, 2020

By Zahnen Garner


This console application was created as my independent project for my eighth week at Epicodus. The application allows users to order bread and pastries from Zahnen's Bakery and receive an order confirmation with totals. The application was created to apply concepts I learned this week which include the basics of writing console applications in C#, creating custom classes and methods in C#, and testing C# apps in MSTest, .


Setup/Installation Instructions

To run the project locally:

  • Open your git-capable command line program (we recommend Terminal on Mac or Git Bash on PC)
  • Ensure you are within the directory you'd like the file to be created in.
  • Enter the command "$ git clone https://github.com/harzulu/vinyl-suggester" in your command line
  • Once cloned, use the "$ cd " command to navigate to the directory created in the previous step.
  • You must have .NET Core V2.2 installed in order to run the console app successfully. If you do not have .NET Core V2.2 installed, find more information and download it here
  • Once in the newly cloned directory, enable testing by running "dotnet restore" within both directories found at the root level of the project directory (Bakery and Bakery.Tests).
  • To test specs outlined in the Specs section, navigate to the Bakery.Tests directory in your command line and run "dotnet test"
  • To run the console application, enter "dotnet run" in your command line while in the Bakery directory.

Specs

  • Program will be able to create a "Bread" object
  • Program will be able to create a "Pastry" object
  • Program will allow Bread objects to hold a base "price" property
  • Program will allow Bread objects to hold a "quantity" property
  • Program will allow Pastry objects to hold a base "price" property
  • Program will allow Pastry objects to hold a "quantity" property
  • Program will discount total price of Bread objects with a buy-two-get-one-free offer.
  • Program will discount total price of Bread objects if purchasing multiple results in multiple instances of a buy-two-get-one-free offer.
  • Program will return non-discounted total price of Bread objects if the order doesn't meet discount criteria.
  • Program will discount total price of Pastry objects with a buy-two-get-one-half off offer.
  • Program will discount total price of Pastry objects if purchasing multiple results in multiple instances of a buy-two-get-one-free offer.
  • Program will return non-discounted total price of Pastry objects if the order doesn't meet discount criteria.

Known Bugs/Issues

There are no known bugs or issues at this time. If you come across any, please let me know by emailing me!


Support and Contact Details


Technologies Used

This application required use of the following programs/languages/libraries to create:

  • GitBash
  • Visual Studio Code
  • GitHub
  • GitHub Pages
  • C# v 7.3
  • .NET Core v 2.2
  • MSTest

License

Licensed under MIT

Copyright (c) 2020 Zahnen Garner

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages