Skip to content

Commit

Permalink
enhancement: added infrastructure/extensions/ServiceCollectionExtensi…
Browse files Browse the repository at this point in the history
…ons.cs files
  • Loading branch information
mahendraintelops committed Dec 10, 2023
1 parent c72e045 commit 886899d
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const InfrastructureDataDatabaseContextFactoryCSFile = "/Infrastructure/Data/Dat

// extensions
const InfrastructureExtensionsPath = "/Infrastructure/Extensions"
const InfrastructureExtensionsServiceCollectionExtensionsCSFile = "/Infrastructure/Extensions/ServiceCollectionExtensions.cs.tmpl"
const InfrastructureExtensionsServicesCollectionExtensionsCSFile = "/Infrastructure/Extensions/ServicesCollectionExtensions.cs.tmpl"

// repositories
const InfrastructureRepositoriesPath = "/Infrastructure/Repositories"
Expand Down Expand Up @@ -530,6 +530,16 @@ func (c *Copier) addInfrastructureRelatedDirectoriesAndFiles(resource *corenode.
return err
}

Check warning on line 531 in internal/languages/dotnet/frameworks/dotnet-clean-architecture/copier.go

View check run for this annotation

Codecov / codecov/patch

internal/languages/dotnet/frameworks/dotnet-clean-architecture/copier.go#L529-L531

Added lines #L529 - L531 were not covered by tests
*paths = append(*paths, &targetInfrastructureDataDatabaseContextFileName)

// copy infrastructure/extensions/ServiceCollectionExtensions.cs
targetInfrastructureExtensionsServicesCollectionExtensionsFileName := c.NodeDirectoryName + InfrastructureExtensionsPath + "/" + "ServicesCollectionExtensions.cs"
_, err = utils.CopyFile(targetInfrastructureExtensionsServicesCollectionExtensionsFileName, c.TemplatesRootPath+InfrastructureExtensionsServicesCollectionExtensionsCSFile)
if err != nil {
log.Errorf("error copying infrastructure extensions services collection extensions file: %v", err)
return err
}

Check warning on line 540 in internal/languages/dotnet/frameworks/dotnet-clean-architecture/copier.go

View check run for this annotation

Codecov / codecov/patch

internal/languages/dotnet/frameworks/dotnet-clean-architecture/copier.go#L538-L540

Added lines #L538 - L540 were not covered by tests
*paths = append(*paths, &targetInfrastructureExtensionsServicesCollectionExtensionsFileName)

return nil
}

Expand Down

0 comments on commit 886899d

Please sign in to comment.