---
title: "Discussion on \"Singleton Pattern with TestContainers and SQL Server in C#\" | Hashnode"
description: "Discussion on \"Singleton Pattern with TestContainers and SQL Server in C#\". When working with web services there is often data access which could benefit from some level of coverage in integration tests. That means re-creating our storage, whatever that may be, in our tests. A key consideration with how we create our storage..."
url: "https://hashnode.com/posts/singleton-pattern-with-testcontainers-and-sql-server-in-c/65714cf1acda178362dd708a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Singleton Pattern with TestContainers and SQL Server in C#](https://michael-nelson.co.uk/singleton-pattern-with-testcontainers-and-sql-server-in-c?utm_source=hashnode&utm_medium=feed)

When working with web services there is often data access which could benefit from some level of coverage in integration tests. That means re-creating our storage, whatever that may be, in our tests. A key consideration with how we create our storage...

Dec 7, 2023 · 3 min read · michael-nelson.co.uk  
Read the article

-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#testcontainers](https://hashnode.com/tag/testcontainers)
-   [#sql-server](https://hashnode.com/tag/sql-server)
-   [#integration-testing](https://hashnode.com/tag/integration-testing)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#singleton-design-pattern](https://hashnode.com/tag/singleton-design-pattern)

## Written by

[Michael Nelson](https://hashnode.com/@mnelson)

@mnelson · Scotland, United Kingdom

  
[View profile](https://hashnode.com/@mnelson)

"No society can surely be flourishing and happy, of which the far greater part of the members are poor and miserable."

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
