Swagger is a tool that exposes the documentation of your APIs and helps collaborating with other teams. We’ll see how to integrate it with .NET Core 3, how to add XML comments and status codes.
Continue reading
Are all comments bad? When they are necessary? Why formatting is so important? Writing clean code does not only refer to the executed code, but also to everything around.
Continue reading
Integration tests are useful to check if multiple components fit together well. How can you test your APIs? And how can you mock dependencies?
Continue reading
You’re using DateTime.Now, aren’t you? Be careful, because it may bring some troubles to your application. Here I’ll explain why and I’ll talk about time zones and formatting in C# DateTime.
Continue reading
I don’t have to tell you why you need to write clean code. Here you’ll see some tips about how to name things and how to structure functions.
Continue reading
Sometimes on your tests you need to access test files, for example for mocking external data. With manifest resources you can easily reference files for your tests.
Continue reading