Skip to content

cristovaofabio/SOLID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SOLID 💻

This project was created only to practice the SOLID principles!

Single Responsibility

  • A class should have a single responsibility.

Open/Closed

  • Classes should be open for extension, but closed for modification.

Liskov Substitution

  • A derived class must be replaceable with its base class.

Interface Segregation

  • Clients should not be forced to depend on methods that they do not use

Dependency Inversion

  • High-level modules should not depend on low-level modules. Both should depend on the abstraction.

Features 📌

  • Add and remove product to shopping cart;
  • Calculate the total value and the discount;
  • Show message to client;

About

SOLID principles and testing with Jest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published