This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed configuration instructed by apple
Fixed to call getExposureInfo when HighestRiskScore is greater than or equal to MinimumRiskScore Added unit test project Removed code-sign and provisioning setting for development
- Loading branch information
Showing
5 changed files
with
99 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
Covid19Radar/Tests/Covid19Radar.UnitTests/AppSettingsTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Xunit; | ||
|
||
namespace Covid19Radar.UnitTests | ||
{ | ||
public class AppSettingsTests | ||
{ | ||
[Fact] | ||
public void SettingsTests() | ||
{ | ||
var settings = new AppSettings(); | ||
Assert.Equal("APP_VERSION", settings.AppVersion); | ||
Assert.Equal("API_SECRET", settings.ApiSecret); | ||
Assert.Equal("https://API_URL_BASE/api", settings.ApiUrlBase); | ||
Assert.Single(settings.SupportedRegions); | ||
Assert.Equal("440", settings.SupportedRegions[0]); | ||
Assert.Equal("c19r", settings.BlobStorageContainerName); | ||
Assert.Equal("ANDROID_SAFETYNETKEY", settings.AndroidSafetyNetApiKey); | ||
Assert.Equal("https://CDN_URL_BASE/", settings.CdnUrlBase); | ||
Assert.Equal("https://covid19radarjpnprod.z11.web.core.windows.net/license.html", settings.LicenseUrl); | ||
Assert.Equal("https://itunes.apple.com/jp/app/id1516764458?mt=8", settings.AppStoreUrl); | ||
Assert.Equal("https://play.google.com/store/apps/details?id=jp.go.mhlw.covid19radar", settings.GooglePlayUrl); | ||
Assert.Equal("SUPPORT_EMAIL", settings.SupportEmail); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
Covid19Radar/Tests/Covid19Radar.UnitTests/Covid19Radar.UnitTests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
|
||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" /> | ||
<PackageReference Include="xunit" Version="2.4.0" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" /> | ||
<PackageReference Include="coverlet.collector" Version="1.2.0" /> | ||
<PackageReference Include="Moq" Version="4.14.5" /> | ||
<PackageReference Include="Microsoft.CodeCoverage" Version="16.7.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\Covid19Radar\Covid19Radar.csproj" /> | ||
</ItemGroup> | ||
</Project> |