Skip to content

Order Processing System is a C# console application that demonstrates Dependency Injection (DI) with multiple order types: Online Orders, Phone Orders, and In-Person Orders. It features dynamic service selection, input validation, and clean code architecture using interfaces and service classes.

License

Notifications You must be signed in to change notification settings

MSahebi-hub/DependencyInjection

Repository files navigation

🍕 Order Processing System

A simple C# Console Application demonstrating Dependency Injection (DI) with multiple order types:
Online Orders
Phone Orders
In-Person Orders

📌 Features

  • Uses Interfaces (IOrderService, IFoodOrderService) for flexibility.
  • Implements Dependency Injection for different order processing services.
  • User selects the order type dynamically via console input.
  • Loop validation ensures users enter a valid choice before proceeding.

Run the application using:

dotnet run


About

Order Processing System is a C# console application that demonstrates Dependency Injection (DI) with multiple order types: Online Orders, Phone Orders, and In-Person Orders. It features dynamic service selection, input validation, and clean code architecture using interfaces and service classes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages