---
title: "Somanath Sutar (@somanathsutar) | Hashnode"
description: "Somanath Sutar (@somanathsutar) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@somanathsutar"
---

@somanathsutar

# Somanath Sutar

@somanathsutar · Joined July 2023

## Comments

[How do I write MS unit test for DbHelper.cs? I am unable to mock. In each DbHelper method there is \_dbContext = new AppDbContext(GetAllOptions()) and GetAllOptions is looking for connection string. So overall it doesn't look right for mocking and creating unit test cases. Any example will help.](https://hashnode.com/posts/creating-worker-service-entity-framework-core-in-net/621513343b018a8cb17c0b5c/comment/64baea03a8381eef4cb8fcad)

Comment · Article · Jul 21, 2023 · [Creating Worker Service + Entity Framework Core in .NET](https://hashnode.com/posts/creating-worker-service-entity-framework-core-in-net/621513343b018a8cb17c0b5c)
