---
title: "Søren Kruse (@Krusen) | Hashnode"
description: "Tech Lead @ IMPACT Commerce. Read the latest articles by Søren Kruse on Hashnode."
url: "https://hashnode.com/@Krusen"
---

@Krusen

# Søren Kruse

@Krusen · Odense, Denmark · Joined May 2022

Tech Lead @ IMPACT Commerce

[Website](https://blog.krusen.dk/)

### [Dynamic caching policy with Polly](https://blog.krusen.dk/dynamic-caching-policy-with-polly?utm_source=hashnode&utm_medium=feed)

Polly is great library for easily configuring different kinds of policies around code execution, be it retry, circuit breaker, caching or lots of other things. It's probably most often used around HTTP requests. If you haven't heard about it you defi...

3 min read · [blog.krusen.dk](https://blog.krusen.dk/dynamic-caching-policy-with-polly?utm_source=hashnode&utm_medium=feed)

[Jan 15, 2021](https://hashnode.com/posts/dynamic-caching-policy-with-polly/628e2c5219bda58ac7fb0f8a)

### [Unit Testing - Part 2: Naming, structure and readability](https://blog.krusen.dk/unit-testing-part-2-naming-structure-readability?utm_source=hashnode&utm_medium=feed)

This is part 2 of my series on unit testing in .NET (C#) and will be about my conventions regarding naming unit tests, how to structure them and which parts to test. And lastly I will help you increase readability of assertions and potential error me...

7 min read · [blog.krusen.dk](https://blog.krusen.dk/unit-testing-part-2-naming-structure-readability?utm_source=hashnode&utm_medium=feed)

[Jan 9, 2021](https://hashnode.com/posts/unit-testing-part-2-naming-structure-readability/628e2c4b19bda58ac7fb0f84)

### [Unit Testing - Part 1: Getting started with unit tests in .NET](https://blog.krusen.dk/unit-testing-part-1-getting-started?utm_source=hashnode&utm_medium=feed)

I feel like unit testing is very important and very beneficial in a lot of ways. It helps with not breaking existing functionality and thereby also making you more confident in changing code without fear of breaking important stuff. Often it also mak...

7 min read · [blog.krusen.dk](https://blog.krusen.dk/unit-testing-part-1-getting-started?utm_source=hashnode&utm_medium=feed)

[Dec 28, 2020](https://hashnode.com/posts/unit-testing-part-1-getting-started/628e2c4519bda58ac7fb0f7d)

### [Getting NSwag to work behind reverse proxy](https://blog.krusen.dk/swagger-nswag-behind-reverse-proxy?utm_source=hashnode&utm_medium=feed)

I've been working with Swagger through NSwag a lot recently and also needed to get it to work when hidden behind a reverse proxy - i.e. another service forwarding a request to the service exposing the Swagger UI. Some of the issues I've had along the...

2 min read · [blog.krusen.dk](https://blog.krusen.dk/swagger-nswag-behind-reverse-proxy?utm_source=hashnode&utm_medium=feed)

[Dec 18, 2020](https://hashnode.com/posts/swagger-nswag-behind-reverse-proxy/628e2c3319bda58ac7fb0f77)

### [NSubstitute - make async method (Task) throw an exception](https://blog.krusen.dk/nsubstitute-make-async-method-throw?utm_source=hashnode&utm_medium=feed)

The other day I was writing a unit test to verify what was supposed to happen when a Task would throw an exception when awaited. It wasn't as straight forward as I first assumed, but I quickly found this Stack Overflow post that helped me: https://st...

3 min read · [blog.krusen.dk](https://blog.krusen.dk/nsubstitute-make-async-method-throw?utm_source=hashnode&utm_medium=feed)

[Dec 12, 2020](https://hashnode.com/posts/nsubstitute-make-async-method-throw/628e2c2c19bda58ac7fb0f72)
