From bef97d1e1d0ea90e7ce4fbe5c40b04dfbff9248b Mon Sep 17 00:00:00 2001 From: yanjustino Date: Mon, 26 Dec 2022 10:30:15 -0300 Subject: [PATCH] Bug Fixing the visibility scope in method It(string key) into DiagramBuildRunner.cs --- src/C4Sharp/Diagrams/DiagramBuildRunner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/C4Sharp/Diagrams/DiagramBuildRunner.cs b/src/C4Sharp/Diagrams/DiagramBuildRunner.cs index 4a0fc98..e839663 100644 --- a/src/C4Sharp/Diagrams/DiagramBuildRunner.cs +++ b/src/C4Sharp/Diagrams/DiagramBuildRunner.cs @@ -32,7 +32,7 @@ protected DiagramBuildRunner() public Structure It(int instance) => It(StructureIdentity.New(instance.ToString()).Value); public Structure It(string instance) => It(StructureIdentity.New(instance).Value); - private Structure It(string key) + public Structure It(string key) => _structures.Items[key] ?? throw new KeyNotFoundException($"Structure {key} not found");