Skip to content

Commit

Permalink
Moved portion of app.config for tests to external config file and inc…
Browse files Browse the repository at this point in the history
…luded an example config.
  • Loading branch information
sumo300 committed Mar 6, 2012
1 parent aac4c2e commit 4d185e9
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 17 deletions.
1 change: 1 addition & 0 deletions .hgignore
Expand Up @@ -4,3 +4,4 @@ obj/
*.suo
*.user
FedEx-Test-Credentials.txt
SeeSharpShip.Tests/sumerano.config
6 changes: 6 additions & 0 deletions SeeSharpShip.Tests/SeeSharpShip.Tests.csproj
Expand Up @@ -61,11 +61,17 @@
<None Include="app.config">
<SubType>Designer</SubType>
</None>
<Content Include="test.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Content Include="sumerano.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SeeSharpShip\SeeSharpShip.csproj">
Expand Down
18 changes: 2 additions & 16 deletions SeeSharpShip.Tests/app.config
Expand Up @@ -6,21 +6,7 @@
</sectionGroup>
</configSections>
<applicationSettings>
<SeeSharpShip.Tests.Properties.Settings>
<setting name="UspsUserId" serializeAs="String">
<value></value>
</setting>
<setting name="UspsPassword" serializeAs="String">
<value></value>
</setting>
<setting name="UspsSourceZip" serializeAs="String">
<value></value>
</setting>
<setting name="UspsApiUrl" serializeAs="String">
<!--<value>http://testing.shippingapis.com/ShippingAPITest.dll</value>-->
<value>https://stg-secure.shippingapis.com/ShippingApi.dll</value>
<!--<value>http://production.shippingapis.com/ShippingAPI.dll</value>-->
</setting>
</SeeSharpShip.Tests.Properties.Settings>
<!-- Modify your test settings in test.config or supply your own config -->
<SeeSharpShip.Tests.Properties.Settings configSource="test.config" />
</applicationSettings>
</configuration>
15 changes: 15 additions & 0 deletions SeeSharpShip.Tests/test.config
@@ -0,0 +1,15 @@
<SeeSharpShip.Tests.Properties.Settings>
<setting name="UspsUserId" serializeAs="String">
<value>[REPLACE WITH USPS USERID]</value>
</setting>
<setting name="UspsPassword" serializeAs="String">
<value>[REPLACE WITH USPS PASSWORD]</value>
</setting>
<setting name="UspsSourceZip" serializeAs="String">
<value>[REPLACE WITH SOURCE ZIP CODE]</value>
</setting>
<setting name="UspsApiUrl" serializeAs="String">
<value>http://stg-production.shippingapis.com/ShippingApi.dll</value>
<!--<value>http://production.shippingapis.com/ShippingAPI.dll</value>-->
</setting>
</SeeSharpShip.Tests.Properties.Settings>
4 changes: 3 additions & 1 deletion SeeSharpShip/SeeSharpShip.csproj
Expand Up @@ -99,7 +99,9 @@
<Compile Include="Utilities\EnumHelper.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="app.config">
<SubType>Designer</SubType>
</None>
<None Include="license.txt" />
<None Include="Service References\FedExRateService\RateServiceDefinitions.wsdl" />
<None Include="Service References\FedExRateService\SeeSharpShip.FedExRateService.RateReply.datasource">
Expand Down

0 comments on commit 4d185e9

Please sign in to comment.