Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
anasik committed Jul 25, 2024
1 parent cfd9ae0 commit 411cf73
Showing 3 changed files with 2 additions and 33 deletions.
25 changes: 0 additions & 25 deletions test/Microsoft.AspNetCore.OData.E2E.Tests/Lists/ListsController.cs
Original file line number Diff line number Diff line change
@@ -90,31 +90,6 @@ public IActionResult Delete(int key)
return this.StatusCode(StatusCodes.Status204NoContent);
}

[HttpPost]
//public IActionResult AddSkill([FromODataUri] int key, [FromBody] ODataActionParameters parameters)
//{
// if (!ModelState.IsValid)
// {
// return BadRequest();
// }

// Skill skill = (Skill)parameters["skill"];

// if (key == 6)
// {
// Assert.Equal(Skill.Sql, skill);
// return Ok();
// }

// Product Product = Products.FirstOrDefault(e => e.ProductId == key);
// if (!Product.SkillSet.Contains(skill))
// {
// Product.SkillSet.Add(skill);
// }

// return Ok(Product.SkillSet);
//}

[HttpPost("ResetDataSource")]
public IActionResult ResetDataSource()
{
8 changes: 1 addition & 7 deletions test/Microsoft.AspNetCore.OData.E2E.Tests/Lists/ListsTest.cs
Original file line number Diff line number Diff line change
@@ -6,30 +6,25 @@
//------------------------------------------------------------------------------
#if NET8_0_OR_GREATER
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.OData.TestCommon;
using Microsoft.AspNetCore.OData.E2E.Tests.Commons;
using Microsoft.AspNetCore.OData.E2E.Tests.Extensions;
using Microsoft.AspNetCore.OData.Routing.Controllers;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.OData;
using Microsoft.OData.Edm;
using Newtonsoft.Json.Linq;
using Xunit;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;

namespace Microsoft.AspNetCore.OData.E2E.Tests.Lists
{
public class ListsTest : WebApiTestBase<ListsTest>
{
private Dictionary<string, string> _map;
// following the Fixture convention.
protected static void UpdateConfigureServices(IServiceCollection services)
{
string currentDirectory = Environment.CurrentDirectory;
@@ -121,7 +116,6 @@ public async Task QueryEntity(string format)
Assert.True(response.IsSuccessStatusCode);

var result = await response.Content.ReadAsObject<JObject>();
//throw new Exception(result.ToString());
if (format == "application/json;odata.metadata=full")
{
var typeOfListTestString = result["ListTestString@odata.type"].ToString();
Original file line number Diff line number Diff line change
@@ -36,9 +36,9 @@
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0' ">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="6.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.8" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0' ">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.3" />

0 comments on commit 411cf73

Please sign in to comment.