Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 847 Bytes

File metadata and controls

61 lines (41 loc) · 847 Bytes

Session 1 Clean architecture for Web APIs model services repositories validators dtos controllers

Testing the endpoints
	http file
	swagger
	postman

Session 2 Unit Testing testing the services mocking the dependencies

Session 3

Problems Same setup repeated in every test Hard to maintain if constructor changes Easy to introduce inconsistencies Tests become noisy → hard to read logic

	✔ Fixture class to centralize mocks/setup
	✔ Proper test isolation + reuse
	Autofixture

Session 4

TestContainers

Session 5 WebTests Testing the API end-to-end Integration tests with TestServer Testing with real HTTP requests

Testing
	Authentication and Authorization
	JWT
	Role-based access control

Session 6

Deployment
	Containerization with Docker
	CI/CD pipelines
	Monitoring and logging