SOLID and Clean Architecture

 Layerd approachs. When each layer will be doing specific task such as LeaveManagement.application layer will only do the business logic and LeaveManagement.web will be doing only the web logic like working on the dependencies, wwwroot, program.cs, appsettings.json etc. But in the layerd approach also in the class there are methods where one more task are being doing and it is still cleanable.


Test:

Unit test, it allow us to know how the parts are working and starting up, integration testing is how the other components are working together.


Inside a class, we should not use more than one class as the separation of concern, so we make each class separated and move. One file one class one responsibility.

abstract:

We can not create object of a abstract class using new keyword.

abstract and static both have limitation on instantiation.

Comments

Popular posts from this blog

c# .net learning From 19 Sep 2023

template

settings.json