Skip to content

ShaniShurkin/design-pattern-automatic-machine

Repository files navigation

Vending Machine Project

This project simulates the activity of a vending machine for snacks and drinks. It uses five types of Design Patterns.

Design Patterns

 - Singleton Pattern is used to ensure that there is only one instance of the vending machine.  - Mediator Pattern is used to encapsulates interactions between the various parts of the machine.  - Builder Pattern is used to create types of drinks step-by-step according to customer requirements.  - Decorator Pattern is used to intended for adding optional extras to the purchased products.  - Template method Pattern is used to select the purchase report print format. The project also includes a UML diagram that shows the relationships between the different classes in the project. The diagram is available in the docs folder.

The project is made with WinForm technology. It can be run on Windows 10 or later.

To Run the Project

 - Open a command prompt and navigate to the project directory.  - Run the following command: dotnet run  - The project will start up and you will be able to interact with the vending machine.

UML Diagram

The following UML diagram shows the relationships between the different classes in the project:

Vending Machine UML Diagram

Contributing

Contributions to design-pattern-automatic-machine are welcome! If you encounter any bugs, have suggestions, or would like to add new features, please create a new issue on the GitHub repository.

License

This project is licensed under the MIT License.

About

Design Pattern project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages