Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Could some one help on how to implement dependency injection with unit testing in c# for enterprise application.
I have gone through the below links and have got idea of what dependency injection is.

https://www.codeproject.com/Tips/657668/Dependency-Injection-DI
https://www.c-sharpcorner.com/UploadFile/dacca2/unit-test-using-mock-object-in- dependency-injection/
Still i am confused how to apply this to enterprise application(ASP.net web application) with unit testing.

What I have tried:

https://www.codeproject.com/Tips/657668/Dependency-Injection-DI
https://www.c-sharpcorner.com/UploadFile/dacca2/unit-test-using-mock-object-in- dependency-injection/
Posted
Updated 27-Mar-18 22:20pm
v2
Comments
F-ES Sitecore 28-Mar-18 4:11am    
Without knowing even what technology you are using it is impossible to give advice. Is this web forms? MVC?
Member 13750578 28-Mar-18 4:17am    
it is asp.net web application

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900