Integration Test – Compendium

It’s second time we’re going to talk about Integration tests, previously I wrote about basics. This time more about how to write IT. Before we start writing tests we need to decide what parts of application we’re going to test. There are 3 possibilities. It’s important to mention that IT like that are very similar…

Read More

Unit Testing compendium

I often hear developers saying they’d like to write tests or when was the last time they wrote unit test. That’s why I decided it’s good idea to write post about “how to” unit testing. You’ll learn how to write tests with good practices, how to make tests independent from another classes. I’ll show you…

Read More

Onion vs Multitier Architecture

Starting new project requires hours of talks from you and your team. You’ll need to choose technologies, libraries, code repository maybe even process framework. Each of those is very important, but most of them you can change during working on project easily, it might be harder if you notice error too late. There is one…

Read More

Autofac – Advanced

Recently we’ve been talking about Dependency Injection. Currently you should know how to use Autofac. Today we’ll learn about things that you may find useful in one of your project. Modules As you may know in big project you’ll have lots of services to inject. That will leave you with multiple lines of code that…

Read More

Client input validation

Previously we’ve been talking about DTO, mostly in WebAPI controllers, but it can be used everywhere. Today last of basic topics that every developer should know about, input validation. I’m not going to try to convince you that validation is important in places where external client will put his data. It should be obvious. What’s…

Read More

AutoMapper and DTO

There are times developer need to implement something boring to make application easier to maintain. Fortunately there are millions of people that have the same problem and already developed solution. One of the worst thing to do is mapping one object to another, but it’s not a problem because we have AutoMapper. Additionally we’ll talk…

Read More

Dependency Injection

We’re not going to talk about whole SOLID extensively, maybe in future when there will be good time for it like this, but it’s sin to touch Dependency Injection without saying anything about 5th SOLID principle, Dependency Inversion, mind different name. Dependency Inversion Main point of Dependency Inversion is to decouple your code. It means…

Read More

DbContext vs Repo and UOW

This topic was discussed by a lot of developers. It’s not hard to find good article about it, but only if you know what you are looking for. When I started working with EF it was much easier to find articles that gave wrong answer, that’s why for pretty long time I was using bad…

Read More

Github Azure DevOps Sync

Github is the most famous Open-Source application repository. A lot of companies keep there their code, for example Microsoft keeps there .Net Core and many, many more. Additionally most of developers, who learn after work have their public repositories on Github. I personally had my repository on Azure DevOps, but later decided to publish my…

Read More

Server-side loading – AutoSFaP

Previously we’ve talked about client-side and server-side loading. As I promised before, today we’ll look at examples of server-side loading using AutoSFaP. AutoSFaP AutoSFaP or Auto Sort, Filter and Paging is nuget package I implemented when I was learning ASP.Net core WebAPI. It is very easy to use and may help you create endpoints with…

Read More