dotnetomaniak.pl - Artykuły z tagiem mocki

Reading time ~3 minutes I’ve seen multiple people struggling with trying to mock the ILogger calls. This post will hopefully save some people from wandering this path. Here it goes:Please stop trying to mock the ILogger methods from .net core. Here is why: Most ILogger methods that we use for logging are extension methods - static methods. While mocking them is possible using Prig, or Microsoft Fakes it is not easy or pleasant. Mocking a static method boils down to replacing the code at runtime using...

Dziel się z innymi:
Stop trying to mock the ILogger methods – IndexOutOfRange

Sztuka programowania 807 dni, 18 godzin, 19 minut temu maklipsa 128 źrodło rozwiń

Konkurs z Code Europe - ranking

1
(30,04)
2
(15)
4
(15)
5
(5,01)

listopad

09.

Najaktywniejsi w tym miesiącu

2
(30,06)
4
(25,03)
7
(19,01)
8
(15)
9
(15)
10
(15)