Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Remove unused parameters from product template (#743)
Browse files Browse the repository at this point in the history
Co-authored-by: Farhad Alizada <[email protected]>
  • Loading branch information
f-alizada and Farhad Alizada authored Jun 13, 2022
1 parent 8f01a5e commit ff1dcdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public async Task<Template<ProductTemplateResources>> GenerateProductsTemplateAs
ExtractorParameters extractorParameters)
{
var productsTemplate = this.templateBuilder
.GenerateTemplateWithPresetProperties(extractorParameters)
.GenerateTemplateWithApimServiceNameProperty()
.AddPolicyProperties(extractorParameters)
.Build<ProductTemplateResources>();

var products = await this.productsClient.GetAllAsync(extractorParameters);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ public async Task GenerateProductsTemplates_ProperlyLaysTheInformation()
templateParameters.Should().ContainKey(ParameterNames.ApimServiceName);
templateParameters.Should().ContainKey(ParameterNames.PolicyXMLBaseUrl);
templateParameters.Should().ContainKey(ParameterNames.PolicyXMLSasToken);
templateParameters.Should().ContainKey(ParameterNames.ServiceUrl);
templateParameters.Should().ContainKey(ParameterNames.ApiLoggerId);

var templateResources = productTemplate.Resources;

Expand Down

0 comments on commit ff1dcdb

Please sign in to comment.