Skip to content

Commit

Permalink
working version no testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaughnAnderson94 committed Jun 25, 2024
1 parent 862ab78 commit 5e15276
Show file tree
Hide file tree
Showing 23 changed files with 706 additions and 22 deletions.
484 changes: 484 additions & 0 deletions .gitignore

Large diffs are not rendered by default.

Empty file.
27 changes: 27 additions & 0 deletions Test.Api.Tests/Test.Api.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.5.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3" />
</ItemGroup>

<ItemGroup>
<Using Include="Xunit" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\testapi\testapi.csproj" />
</ItemGroup>

</Project>
22 changes: 16 additions & 6 deletions testapi/Controllers/GamesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,20 @@ public async Task<IActionResult> DeleteGame(int id)

return NoContent();
}
// [HttpPost]
// public IEnumerable<Game> AddEmployee([FromBody] Game game)
// {
// games.Add(game);
// return games;
// }
[HttpPost]

public async Task<ActionResult<Game>> PostGame([FromBody] Game game)
{
if (game == null)
{
return BadRequest();
}

_context.Games.Add(game);
await _context.SaveChangesAsync();

return CreatedAtAction(nameof(GetGames), new { id = game.id }, game);
}


}
Binary file modified testapi/bin/Debug/net8.0/testapi.dll
Binary file not shown.
Binary file modified testapi/bin/Debug/net8.0/testapi.exe
Binary file not shown.
Binary file modified testapi/bin/Debug/net8.0/testapi.pdb
Binary file not shown.
Binary file modified testapi/games.db
Binary file not shown.
Binary file modified testapi/obj/Debug/net8.0/apphost.exe
Binary file not shown.
Binary file modified testapi/obj/Debug/net8.0/ref/testapi.dll
Binary file not shown.
Binary file modified testapi/obj/Debug/net8.0/refint/testapi.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion testapi/obj/Debug/net8.0/testapi.AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[assembly: System.Reflection.AssemblyCompanyAttribute("testapi")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ead069a2d444c6218f4fca34235477d7d6075a1a")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+862ab784e783b803de50c1b4f31b16235885927b")]
[assembly: System.Reflection.AssemblyProductAttribute("testapi")]
[assembly: System.Reflection.AssemblyTitleAttribute("testapi")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
Expand Down
2 changes: 1 addition & 1 deletion testapi/obj/Debug/net8.0/testapi.AssemblyInfoInputs.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8830a7165f759012b98420bee6bb2a04b0370eeab2bddb59dc191575912ba468
76528c27dca3560a07a95a85fcb577720a9764bb7da68cd5c5e67c1b02b138de
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = testapi
build_property.RootNamespace = testapi
build_property.ProjectDir = C:\Users\sarah\Desktop\programing\dotnetAPI\testapi\
build_property.ProjectDir = C:\Users\sarah\Desktop\programing\DOTNET-Workshop-Two\testapi\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.RazorLangVersion = 8.0
build_property.SupportLocalizedComponentNames =
build_property.GenerateRazorMetadataSourceChecksumAttributes =
build_property.MSBuildProjectDirectory = C:\Users\sarah\Desktop\programing\dotnetAPI\testapi
build_property.MSBuildProjectDirectory = C:\Users\sarah\Desktop\programing\DOTNET-Workshop-Two\testapi
build_property._RazorSourceGeneratorDebug =
Binary file modified testapi/obj/Debug/net8.0/testapi.assets.cache
Binary file not shown.
163 changes: 163 additions & 0 deletions testapi/obj/Debug/net8.0/testapi.csproj.FileListAbsolute.txt

Large diffs are not rendered by default.

Binary file modified testapi/obj/Debug/net8.0/testapi.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion testapi/obj/Debug/net8.0/testapi.genruntimeconfig.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b13a4867ec94a5ab1c979dc2d35be1e28dfff0a63aa7b663fb62dc47c6b1f19b
164b57e0286b217e3aa0c59b9857382bf548baae13f940e85f2d8dcdf51a691e
Binary file modified testapi/obj/Debug/net8.0/testapi.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion testapi/obj/Debug/net8.0/testapi.sourcelink.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documents":{"C:\\Users\\sarah\\Desktop\\programing\\dotnetAPI\\*":"https://raw.githubusercontent.com/ShaughnAnderson94/dotnetAPI/ead069a2d444c6218f4fca34235477d7d6075a1a/*"}}
{"documents":{"C:\\Users\\sarah\\Desktop\\programing\\DOTNET-Workshop-Two\\*":"https://raw.githubusercontent.com/ShaughnAnderson94/dotnetAPI/862ab784e783b803de50c1b4f31b16235885927b/*"}}
6 changes: 3 additions & 3 deletions testapi/obj/project.assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -4845,11 +4845,11 @@
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\sarah\\Desktop\\programing\\dotnetAPI\\testapi\\testapi.csproj",
"projectUniqueName": "C:\\Users\\sarah\\Desktop\\programing\\DOTNET-Workshop-Two\\testapi\\testapi.csproj",
"projectName": "testapi",
"projectPath": "C:\\Users\\sarah\\Desktop\\programing\\dotnetAPI\\testapi\\testapi.csproj",
"projectPath": "C:\\Users\\sarah\\Desktop\\programing\\DOTNET-Workshop-Two\\testapi\\testapi.csproj",
"packagesPath": "C:\\Users\\sarah\\.nuget\\packages\\",
"outputPath": "C:\\Users\\sarah\\Desktop\\programing\\dotnetAPI\\testapi\\obj\\",
"outputPath": "C:\\Users\\sarah\\Desktop\\programing\\DOTNET-Workshop-Two\\testapi\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\sarah\\AppData\\Roaming\\NuGet\\NuGet.Config"
Expand Down
4 changes: 2 additions & 2 deletions testapi/obj/project.nuget.cache
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": 2,
"dgSpecHash": "InC+6reCz+4=",
"dgSpecHash": "tQWrRm+8y+8=",
"success": true,
"projectFilePath": "C:\\Users\\sarah\\Desktop\\programing\\dotnetAPI\\testapi\\testapi.csproj",
"projectFilePath": "C:\\Users\\sarah\\Desktop\\programing\\DOTNET-Workshop-Two\\testapi\\testapi.csproj",
"expectedPackageFiles": [
"C:\\Users\\sarah\\.nuget\\packages\\azure.core\\1.35.0\\azure.core.1.35.0.nupkg.sha512",
"C:\\Users\\sarah\\.nuget\\packages\\azure.identity\\1.10.3\\azure.identity.1.10.3.nupkg.sha512",
Expand Down
10 changes: 5 additions & 5 deletions testapi/obj/testapi.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"format": 1,
"restore": {
"C:\\Users\\sarah\\Desktop\\programing\\dotnetAPI\\testapi\\testapi.csproj": {}
"C:\\Users\\sarah\\Desktop\\programing\\DOTNET-Workshop-Two\\testapi\\testapi.csproj": {}
},
"projects": {
"C:\\Users\\sarah\\Desktop\\programing\\dotnetAPI\\testapi\\testapi.csproj": {
"C:\\Users\\sarah\\Desktop\\programing\\DOTNET-Workshop-Two\\testapi\\testapi.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\sarah\\Desktop\\programing\\dotnetAPI\\testapi\\testapi.csproj",
"projectUniqueName": "C:\\Users\\sarah\\Desktop\\programing\\DOTNET-Workshop-Two\\testapi\\testapi.csproj",
"projectName": "testapi",
"projectPath": "C:\\Users\\sarah\\Desktop\\programing\\dotnetAPI\\testapi\\testapi.csproj",
"projectPath": "C:\\Users\\sarah\\Desktop\\programing\\DOTNET-Workshop-Two\\testapi\\testapi.csproj",
"packagesPath": "C:\\Users\\sarah\\.nuget\\packages\\",
"outputPath": "C:\\Users\\sarah\\Desktop\\programing\\dotnetAPI\\testapi\\obj\\",
"outputPath": "C:\\Users\\sarah\\Desktop\\programing\\DOTNET-Workshop-Two\\testapi\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\sarah\\AppData\\Roaming\\NuGet\\NuGet.Config"
Expand Down

0 comments on commit 5e15276

Please sign in to comment.