Strona głównaUżytkownik

cezarypiatek | użytkownik

cezarypiatek
cezarypiatek
1 418,8
613 dni, 23 godziny, 38 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 620 dni, 8 godzin, 1 minutę temu cezarypiatek 154 ź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

Sztuka programowania 710 dni, 6 godzin, 24 minuty temu cezarypiatek 90 źrodło rozwiń

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 1059 dni, 7 godzin, 9 minut temu cezarypiatek 137 ź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 1100 dni, 6 godzin, 57 minut temu cezarypiatek 197 ź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 1208 dni, 8 godzin, 39 minut temu cezarypiatek 55 ź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 1229 dni, 8 godzin, 41 minut temu cezarypiatek 64 ź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 1375 dni, 7 godzin, 35 minut temu cezarypiatek 107 ź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 1402 dni, 7 godzin, 18 minut temu cezarypiatek 72 ź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 1426 dni, 7 godzin, 4 minuty temu cezarypiatek 31 ź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 1508 dni, 7 godzin, 12 minut temu cezarypiatek 80 ź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 1524 dni, 8 godzin, 21 minut temu cezarypiatek 49 ź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 1531 dni, 8 godzin, 21 minut temu cezarypiatek 70 ź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 1563 dni, 8 godzin, 18 minut temu cezarypiatek 81 ź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 1566 dni, 8 godzin, 7 minut temu cezarypiatek 57 ź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

Bazy danych i XML 1601 dni, 5 godzin, 51 minut temu cezarypiatek 135 źrodło rozwiń

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 1634 dni, 7 godzin, 37 minut temu cezarypiatek 206 ź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 1650 dni, 9 godzin, 26 minut temu cezarypiatek 52 ź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 1732 dni, 7 godzin, 15 minut temu cezarypiatek 66 ź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 1741 dni, 7 godzin, 30 minut temu cezarypiatek 90 ź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 1838 dni, 7 godzin, 55 minut temu cezarypiatek 75 źrodło rozwiń

1 2 3

Najaktywniejsi w tym miesiącu