Tag: C#
-
Writing better tests with xUnit Theory
This post describes some of the pain-points of xUnit Theory and how we can write more descriptive tests by overriding the test output.
-
.NET Core and DI – Beware of Captive Dependency
The post explains captive dependency. It highlights the potential issues when you do not configure lifetime services correctly.
-
Client library for your Rest API – Is it worth the pain?
Creating a client library for your Rest service can help your clients consume your Rest API. But is it a silver bullet to every problem?
-
Our failed attempt at IAsyncEnumerable
C# 8 introduced a great feature of async stream using IAsyncEnumerable. This post talks about potential pitfalls when not using it right.
-
Running an ASP.NET Core application against multiple DB providers – Part 1
In my previous post, I had talked about how we to ported an existing repository code from Azure SQL to Amazon Aurora. This is a two-series post where I will throw a little bit more light on the intention behind it and what we were trying to achieve. Background We had a small ASP.NET Core solution…
-
Azure SQL to Cosmos DB – Lesson Learnt
We are currently working on a greenfield project which involves building several microservices on Azure. One of our primary services had Azure SQL as its data source originally. But, midway during the development, we decided to switch Cosmos DB instead. One of the main motivations for this switch was that it was too hard to…
-
C# dynamic – A friend you may want to keep a distance
Recently, after one of my PRs which was merged to master, my teammates started complaining about a weird scenario. On some occasions, the ASP.NET Core app hosted inside the IIS worker process (w3wp.exe), would simply die without any exception/ warning. There were no clear retro-steps and it was difficult to pinpoint what was causing the…
-
My first major Open Source contribution
Without a doubt Open Source is great. It has touched the lives of millions of developers and through them almost everyone living on this planet someway or the other. The magic of Open Source For all the power Open Source has given to developers, the sad reality is that only very few people are actually…
-
Journey towards UI tests greatness – Lessons Learnt
A bit of a background I work on a long-running running project in our organization. We have a CI/CD pipeline for our project following the GitHub flow and backed by thousands of unit tests, hundreds of integration tests. However, until recently we were missing a key piece to the puzzle. UI Tests!
-
Test your app across the browsers through BrowserStack
Testing your applications cross-platform and cross-browser is not an easy problem to solve. Supporting different versions, operating systems and devices can be an extremely frustrating and time-consuming process. It can be especially painful if you need to support legacy browsers like IE 9 or IE 8.