Strona głównaUżytkownik

cezarypiatek | użytkownik

cezarypiatek
cezarypiatek
1 418,8
380 dni, 17 godzin, 59 minut temu
18 kwietnia, 2014
dotnetomaniak.pl

WireMock.NET allows for easy testing of the code that makes HTTP requests, without having to rely on the actual external service being available and without hacking HttpClient.

Tagi: dotnet, HTTP, testing
Dziel się z innymi:
WireMock.NET - Introduction · Cezary Piątek Blog

Narzędzia 387 dni, 2 godziny, 21 minut temu cezarypiatek 130 źrodło rozwiń

In this article, I’ll delve into the process of mocking dependencies in a DI container when using WebApplicationFactory, and offer some insights and best practices I’ve learned along the way.

Tagi: testing
Dziel się z innymi:
Mocking dependencies in ASP.NET Core tests · Cezary Piątek Blog

MediatR is a very popular library used to reduce dependencies between objects. It advocates an architecture based on very valuable design principles: not allowing direct communication between objects, it promotes loose coupling...

Tagi: Biblioteka
Dziel się z innymi:
You probably don't need MediatR

Sztuka programowania 826 dni, 1 godzinę, 29 minut temu cezarypiatek 134 źrodło rozwiń

MediatR is a tool - and just like any tool, it has its own scope of application, and being used incorrectly might do more harm than good. This blog post summarizes my thoughts about using MediatR for supporting CQRS architecture.

Dziel się z innymi:
Why I don't use MediatR for CQRS · Cezary Piątek Blog

Sztuka programowania 867 dni, 1 godzinę, 17 minut temu cezarypiatek 188 źrodło rozwiń

I recently migrated my VS Extension MappingGenerator (https://mappinggenerator.net/) to VisualStudio 2022. Unfortunately, I lost 4h by following the official migration guideline. Here are my notes on the subject to save you some time https://cezarypiatek.github.io/post/migrate-vsix-to-vs2022/

BREAKING: Developer revealed a complete release pipeline source code for commercial product

Narzędzia 975 dni, 3 godziny temu cezarypiatek 49 źrodło rozwiń

In the “classical unit tests” developers quite often use Arrange/Act/Assert comments to annotate the main parts of the test method script. However, the test case scenarios in component tests tend to be more complex and those simple notations don’t fit anymore. Here's my proposition on how to deal with that problem...

Tagi: testing
Dziel się z innymi:
Readable and clear tests for ASP.NET Core services · Cezary Piątek Blog

Sztuka programowania 996 dni, 3 godziny, 2 minuty temu cezarypiatek 60 źrodło rozwiń

In this blog post I’m going to share my experience on testing ASP.NET Core applications with applying unconventional method called snapshot assertions. In comparison to the classical approach this method should save you a lot of time and improve assertions maintainability.

Dziel się z innymi:
Testing WebAPI with ApprovalTests.NET · Cezary Piątek Blog

Narzędzia 1142 dni, 1 godzinę, 56 minut temu cezarypiatek 104 źrodło rozwiń

A while ago I came across “Quick notes on a rant” authored by Don Syme. This rant criticizes the C# language for the lack of a few important features. The first point is "Implicitly discarding information is so 20th Century" which brings our attention to one of the sources of bugs in C# programs. Lucky me, I got the pleasure to make this kind of bug and find it later in production code, so this blog post is to save you the trouble...

Dziel się z innymi:
Pure functions and unused return values · Cezary Piątek Blog

Sztuka programowania 1169 dni, 1 godzinę, 39 minut temu cezarypiatek 66 źrodło rozwiń

How to completely automate continuous integration and release management of visual studio extensions.

Dziel się z innymi:
Github Actions for Visual Studio Extension developers · Cezary Piątek Blog

Narzędzia 1193 dni, 1 godzinę, 24 minuty temu cezarypiatek 27 źrodło rozwiń

In the last two posts, I’ve described 14 different code smells related to the async/await keywords. Beside the problem description, I’ve also provided info about code analyzers that can detect and report given issue. Those analyzers come from a few different packages that are not strictly devoted to the asynchronous programming area. They also contain rules from other fields with predefined severity, which might not be appropriate to your needs, or you might not be interested in enforcing them at all. Th...

Dziel się z innymi:
Async code smells and how to track them down with analyzers - Summary · Cezary Piątek Blog

Narzędzia 1275 dni, 1 godzinę, 33 minuty temu cezarypiatek 78 źrodło rozwiń

This blog post continues the series which is a guide through the code analyzers available on the market and their possibilities. I’m trying to help you answer the question: “Which analyzer package should I use and how to configure it to avoid problems related to async/await?".

Tagi: analyzers, csharp
Dziel się z innymi:
Async code smells and how to track them down with analyzers - Part II · Cezary Piątek Blog

Sztuka programowania 1291 dni, 2 godziny, 42 minuty temu cezarypiatek 45 źrodło rozwiń

Which analyzer package should I use and how to configure it to avoid most common problems related to async/await.

Dziel się z innymi:
Async code smells and how to track them down with analyzers - Part I · Cezary Piątek Blog

Sztuka programowania 1298 dni, 2 godziny, 42 minuty temu cezarypiatek 67 źrodło rozwiń

In this blog post I introduce Mapping Generator - a possible design time alternative to AutoMapper.

Tagi: AutoMapper
Źródło: guidnew.com
Dziel się z innymi:
Mapping Generator - Design Time Alternative to AutoMapper - Guid.New

Narzędzia 1330 dni, 2 godziny, 39 minut temu cezarypiatek 78 źrodło rozwiń

How to configure dotnet core solutions to automatically generate client packages for WebAPI projects

Dziel się z innymi:
Auto generated WebAPI client library with NSwag · Cezary Piątek Blog

Narzędzia 1333 dni, 2 godziny, 28 minut temu cezarypiatek 54 źrodło rozwiń

A couple of tricks which simplify database access code while using Dapper library.

Tagi: C#, DAPPER, SQLServer
Dziel się z innymi:
Working efficiently with legacy database using Dapper · Cezary Piątek Blog

There’s a certain set of special method signatures in C# which have particular support on the language level. Methods with those signatures allow for using a special syntax which has several benefits. For example, we can use them to simplify our code or create DSL to express a solution to our domain-specific problem in a much cleaner way. I came across those methods in different places, so I decided to create a blog post to summarize all my discoveries on this subject.

Tagi: C#
Dziel się z innymi:
The Magical Methods in C# · Cezary Piątek Blog

Sztuka programowania 1401 dni, 1 godzinę, 58 minut temu cezarypiatek 203 źrodło rozwiń

How to keep two different types in synchronization using roslyn analyzers.

Tagi: C#, dotnet, roslyn
Dziel się z innymi:
[EN] Twin types - properties synchronization without inheritance · Cezary Piątek Blog

Narzędzia 1417 dni, 3 godziny, 47 minut temu cezarypiatek 51 źrodło rozwiń

How to improve developer's experience while working with non-nullable references

Tagi: roslyn
Dziel się z innymi:
[EN] Improving non-nullable reference types handling · Cezary Piątek Blog

Sztuka programowania 1499 dni, 1 godzinę, 36 minut temu cezarypiatek 64 źrodło rozwiń

How to create immutable types without writing a large amount of boilerplate code.

Dziel się z innymi:
[EN] Immutable types in C# with Roslyn · Cezary Piątek Blog

Sztuka programowania 1508 dni, 1 godzinę, 51 minut temu cezarypiatek 89 źrodło rozwiń

If you are still using regex for setting AssemblyVersion you should definitely read this article.

Dziel się z innymi:
Setting assembly and nuget package metadata in .NET Core · Cezary Piątek Blog

Narzędzia 1605 dni, 2 godziny, 16 minut temu cezarypiatek 73 źrodło rozwiń

1 2 3

Najaktywniejsi w tym miesiącu