From a1b7bbe41ea9c5d86661175458263ea415bd9449 Mon Sep 17 00:00:00 2001 From: mg-diego Date: Fri, 6 Oct 2023 18:21:25 +0200 Subject: [PATCH] Solve PR comments --- src/Engines/TestWare.Engines.MongoDB/Factory/ClientFactory.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Engines/TestWare.Engines.MongoDB/Factory/ClientFactory.cs b/src/Engines/TestWare.Engines.MongoDB/Factory/ClientFactory.cs index 4cad043..b542ec9 100644 --- a/src/Engines/TestWare.Engines.MongoDB/Factory/ClientFactory.cs +++ b/src/Engines/TestWare.Engines.MongoDB/Factory/ClientFactory.cs @@ -6,6 +6,7 @@ internal class ClientFactory { public static IMongoDbClient Create(Capabilities capabilities) { + if (capabilities == null || capabilities.ConnectionString == null) throw new ArgumentNullException(nameof(capabilities)); return new MongoDbClient(capabilities.ConnectionString); } }