Skip to content

Commit 71e1707

Browse files
committed
Fix missing package and failing test
1 parent 3a49ba3 commit 71e1707

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

11. NinjaApi - IntegrationTesting/src/ForEvolve.Blog.Samples.NinjaApi/ForEvolve.Blog.Samples.NinjaApi.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="ForEvolve" Version="1.0.0-upsilon-180" />
10+
<PackageReference Include="ForEvolve.Azure" Version="2.3.3" />
1111
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
1212
<PackageReference Include="Microsoft.CodeCoverage" Version="1.0.3" />
1313
</ItemGroup>

11. NinjaApi - IntegrationTesting/src/ForEvolve.Blog.Samples.NinjaApi/appsettings.Development.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
}
99
},
1010
"AzureTable": {
11+
"AccountName": "devstoreaccount1",
12+
"AccountKey": "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==",
1113
"TableName": "NinjaDev"
1214
}
1315
}

11. NinjaApi - IntegrationTesting/test/ForEvolve.Blog.Samples.NinjaApi.IntegrationTests/BaseHttpTest.cs

+8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using Microsoft.AspNetCore.Hosting;
22
using Microsoft.AspNetCore.TestHost;
3+
using Microsoft.Extensions.Configuration;
34
using Microsoft.Extensions.DependencyInjection;
45
using System;
56
using System.Collections.Generic;
7+
using System.IO;
68
using System.Net.Http;
79
using System.Text;
810

@@ -21,6 +23,12 @@ public BaseHttpTest()
2123
var builder = Program
2224
.CreateWebHostBuilder(null)
2325
.UseEnvironment(Environment)
26+
.ConfigureAppConfiguration(b =>
27+
{
28+
var dir = Directory.GetCurrentDirectory();
29+
var file = Path.Combine(dir, "appsettings.json");
30+
b.AddJsonFile(file);
31+
})
2432
.ConfigureServices(ConfigureServices);
2533

2634
Server = new TestServer(builder);

11. NinjaApi - IntegrationTesting/test/ForEvolve.Blog.Samples.NinjaApi.IntegrationTests/ForEvolve.Blog.Samples.NinjaApi.IntegrationTests.csproj

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.0</TargetFramework>
@@ -13,6 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16+
<PackageReference Include="ForEvolve.AspNetCore" Version="1.0.0" />
1617
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.0.0" />
1718
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
1819
<PackageReference Include="xunit" Version="2.2.0" />
@@ -24,8 +25,4 @@
2425
<ProjectReference Include="..\..\src\ForEvolve.Blog.Samples.NinjaApi\ForEvolve.Blog.Samples.NinjaApi.csproj" />
2526
</ItemGroup>
2627

27-
<ItemGroup>
28-
<Folder Include="Properties\" />
29-
</ItemGroup>
30-
3128
</Project>

0 commit comments

Comments
 (0)