Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
fadce12
Add test playlists for visual studio.
C-Kennelly Aug 6, 2017
38e5746
Add Player Appearance Model (Halo5.Profile endpoint)
C-Kennelly Aug 6, 2017
f87c527
Add GetPlayerAppearance query class. (Halo5/Query/Profile)
C-Kennelly Aug 6, 2017
446ed27
Create unit tests for GetPlayerAppearance (Halo5.Query.Profile)
C-Kennelly Aug 6, 2017
2baa6bd
Add player-appearance.json and player-appearance.schema.json to compl…
C-Kennelly Aug 6, 2017
fb93e01
Remove test playlists file
C-Kennelly Aug 6, 2017
4345692
Make GetPlayerAppearance Public
C-Kennelly Aug 8, 2017
a68b2b3
Merge pull request #1 from C-Kennelly/H5SpartanCompanyEndpoints
C-Kennelly Aug 8, 2017
5543aeb
Begin implementing SpartanCompany model; update Equals in Model.Profi…
C-Kennelly Sep 17, 2017
e800283
Add name back to keep with HaloSharp convention.
C-Kennelly Sep 17, 2017
19a7048
Finish Model.Halo5.Stats.SpartanCompany.cs and normalize my naming to…
C-Kennelly Sep 17, 2017
30ee9c3
Add GetSpartanCompany query class. (Halo5.Query.Stats)
C-Kennelly Sep 17, 2017
12a0272
Complete Get Spartan Company endpoint.
C-Kennelly Sep 17, 2017
2b50192
Add schema.JSON and sample response for unit tests.
C-Kennelly Sep 17, 2017
3f993ce
Begin unit tests.
C-Kennelly Sep 17, 2017
db55738
Still adding unit tests to check for errors, but validated working at…
C-Kennelly Sep 18, 2017
e1cd9dc
Finish unit tests for Halo5.Query.Stats.GetSpartanCompany
C-Kennelly Sep 18, 2017
5390578
Correct field capitalizations to Halo5.Model.Profile.PlayerAppearance…
C-Kennelly Sep 18, 2017
1a41299
NUnit TestCases must take strings, not GUID's. Add expected exceptio…
C-Kennelly Sep 19, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Source/HaloSharp.Test/Config/Halo5Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ public static class Halo5Config
public const string WeaponsJsonPath = "JSON/Halo5/Metadata/weapons.json";
public const string WeaponsJsonSchemaPath = "JSON/Halo5/Metadata/weapons.schema.json";

public const string SpartanCompanyPath = "JSON/Halo5/Stats/spartan-company.json";
public const string SpartanCompanySchemaPath = "JSON/Halo5/Stats/spartan-company.schema.json";

public const string PlayerAppearancePath = "JSON/Halo5/Profile/player-appearance.json";
public const string PlayerAppearanceSchemaPath = "JSON/Halo5/Profile/player-appearance.schema.json";

public const string ArenaMatchJsonPath = "JSON/Halo5/Stats/CarnageReport/arena-match.json";
public const string ArenaMatchJsonSchemaPath = "JSON/Halo5/Stats/CarnageReport/arena-match.schema.json";
public const string CampaignMatchJsonPath = "JSON/Halo5/Stats/CarnageReport/campaign-match.json";
Expand Down
13 changes: 13 additions & 0 deletions Source/HaloSharp.Test/HaloSharp.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@
<Compile Include="Query\Halo5\Metadata\GetTeamColorsTests.cs" />
<Compile Include="Query\Halo5\Metadata\GetVehiclesTests.cs" />
<Compile Include="Query\Halo5\Metadata\GetWeaponsTests.cs" />
<Compile Include="Query\Halo5\Profile\GetPlayerAppearanceTests.cs" />
<Compile Include="Query\Halo5\Stats\CarnageReport\GetMatchEventsTests.cs" />
<Compile Include="Query\Halo5\Stats\CarnageReport\GetArenaMatchDetailsTests.cs" />
<Compile Include="Query\Halo5\Stats\CarnageReport\GetCampaignMatchDetailsTests.cs" />
<Compile Include="Query\Halo5\Stats\CarnageReport\GetCustomMatchDetailsTests.cs" />
<Compile Include="Query\Halo5\Stats\CarnageReport\GetWarzoneMatchDetailsTests.cs" />
<Compile Include="Query\Halo5\Stats\GetLeaderboardTests.cs" />
<Compile Include="Query\Halo5\Stats\GetMatchesTests.cs" />
<Compile Include="Query\Halo5\Stats\GetSpartanCompanyTests.cs" />
<Compile Include="Query\Halo5\Stats\Lifetime\GetArenaServiceRecordTests.cs" />
<Compile Include="Query\Halo5\Stats\Lifetime\GetCampaignServiceRecordTests.cs" />
<Compile Include="Query\Halo5\Stats\Lifetime\GetCustomServiceRecordTests.cs" />
Expand Down Expand Up @@ -270,6 +272,12 @@
<None Include="JSON\Halo5\Metadata\Common\reward.schema.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="JSON\Halo5\Profile\player-appearance.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="JSON\Halo5\Profile\player-appearance.schema.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="JSON\Halo5\Stats\CarnageReport\Common\boost-info.schema.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -384,6 +392,8 @@
<None Include="JSON\Halo5\Stats\matches.schema.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="JSON\Halo5\Stats\spartan-company.json" />
<None Include="JSON\Halo5\Stats\spartan-company.schema.json" />
<None Include="JSON\Halo5\UserGeneratedContent\Common\stats.schema.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -623,6 +633,9 @@
<Name>HaloSharp</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ProjectExtensions />
Expand Down
14 changes: 14 additions & 0 deletions Source/HaloSharp.Test/JSON/Halo5/Profile/player-appearance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"Gamertag": "Furiousn00b",
"LastModifiedUtc": {
"ISO8601Date": "2016-07-03T00:00:00Z"
},
"FirstModifiedUtc": {
"ISO8601Date": "2015-10-19T00:00:00Z"
},
"ServiceTag": "FURI",
"Company": {
"Id": "a2f47e59-5cc0-44f8-a542-77c162fe69e8",
"Name": "Section 3"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"definitions": {
"Player-Appearance": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"properties": {
"Gamertag": {
"type": "string"
},
"LastModifiedUTC": {
"$ref": "../../common/iso-8061.schema.json"
},
"FirstModifiedUTC": {
"$ref": "../../common/iso-8061.schema.json"
},
"ServiceTag": {
"type": "string"
},
"Company": {
"type": [ "array", "null" ],
"items": {
"Id": {
"type": "guid"
},
"Name": {
"type": "string"
}
}
}
},
"required": [
"Gamertag",
"LastModifiedUTC",
"FirstModifiedUTC",
"ServiceTag",
"Company"
]
}
},

"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"items": {
"$ref": "#/definitions/Player-Appearance"
}
}
Loading