Skip to content

Commit

Permalink
Fixed some SC issues (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebjornset authored Nov 10, 2024
1 parent 52cecf5 commit 6232bc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/develop/DryGen.UTests/Steps/ErDiagramGeneratorSteps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ public ErDiagramGeneratorSteps(
[Given(@"the Er diagram attribute type exclusion '([^']*)'")]
public void GivenTheErDiagramAttributeTypeExclusion(string typeExclusion)
{
generatorHooks.ErDiagramAttributeTypeExclusion = (ErDiagramAttributeTypeExclusion)Enum.Parse(typeof(ErDiagramAttributeTypeExclusion), typeExclusion);
generatorHooks.ErDiagramAttributeTypeExclusion = Enum.Parse<ErDiagramAttributeTypeExclusion>(typeExclusion);
}

[Given(@"the Er diagram relationship exclusion '([^']*)'")]
public void GivenTheErDiagramRelationshipExclusion(string level)
{
generatorHooks.ErDiagrErDiagramRelationshipTypeExclusion = (ErDiagramRelationshipTypeExclusion)Enum.Parse(typeof(ErDiagramRelationshipTypeExclusion), level);
generatorHooks.ErDiagrErDiagramRelationshipTypeExclusion = Enum.Parse<ErDiagramRelationshipTypeExclusion>(level);
}

[When(@"I generate an ER diagram using reflection")]
Expand Down Expand Up @@ -81,7 +81,7 @@ public void WhenIGenerateAnERDiagramUsingEfCore()
[When(@"I generate an ER diagram using '([^']*)'")]
public void WhenIGenerateAnERDiagramUsing(string structureBuilder)
{
var structureBuilderType = (ErStructureBuilderType)Enum.Parse(typeof(ErStructureBuilderType), structureBuilder);
var structureBuilderType = Enum.Parse<ErStructureBuilderType>(structureBuilder);
if (structureBuilderType == ErStructureBuilderType.Reflection)
{
WhenIGenerateAnERDiagramUsingReflection();
Expand Down
2 changes: 1 addition & 1 deletion src/develop/DryGen.UTests/Steps/JsonSchemaSteps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void WhenILoadTheJsonSchemaFromAFileWithTheExtension(string extension)
[When(@"I load the json schema from a file forcing the schema format ""([^""]*)""")]
public void WhenILoadTheJsonSchemaFromAFileForcingTheSchemaFormat(string forcedSchemaFormat)
{
var jsonSchemaFileFormat = (JsonSchemaFileFormat)Enum.Parse(typeof(JsonSchemaFileFormat), forcedSchemaFormat, true);
var jsonSchemaFileFormat = Enum.Parse<JsonSchemaFileFormat>(forcedSchemaFormat, true);
CreateAndLoadTestJsonFile("forced", jsonSchemaFileFormat);
}

Expand Down

0 comments on commit 6232bc9

Please sign in to comment.