File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- using Xunit ;
2
- using JsonApiDotNetCore . Builders ;
3
1
using System . Collections . Generic ;
2
+ using JsonApiDotNetCore . Builders ;
3
+ using Xunit ;
4
4
5
- namespace JsonApiDotNetCoreExampleTests . Unit . Builders
5
+ namespace UnitTests . Builders
6
6
{
7
7
public class MetaBuilderTests
8
8
{
Original file line number Diff line number Diff line change 10
10
using JsonApiDotNetCoreExample . Data ;
11
11
using JsonApiDotNetCoreExample . Models ;
12
12
using Microsoft . AspNetCore . Http ;
13
- using Microsoft . Extensions . Caching . Memory ;
14
13
using Microsoft . Extensions . DependencyInjection ;
15
- using UnitTests ;
16
14
using Xunit ;
15
+ using Microsoft . EntityFrameworkCore ;
17
16
18
- namespace JsonApiDotNetCoreExampleTests . Unit . Extensions
17
+ namespace UnitTests . Extensions
19
18
{
20
19
public class IServiceCollectionExtensionsTests
21
20
{
@@ -28,7 +27,7 @@ public void AddJsonApiInternals_Adds_All_Required_Services()
28
27
29
28
services . AddDbContext < AppDbContext > ( options =>
30
29
{
31
- options . UseMemoryCache ( new MemoryCache ( new MemoryCacheOptions ( ) ) ) ;
30
+ options . UseInMemoryDatabase ( ) ;
32
31
} , ServiceLifetime . Transient ) ;
33
32
34
33
// act
Original file line number Diff line number Diff line change 1
1
using JsonApiDotNetCore . Models ;
2
2
using Xunit ;
3
3
4
- namespace JsonApiDotNetCoreExampleTests . Unit . Models
4
+ namespace UnitTests . Models
5
5
{
6
6
public class AttributesEqualsTests
7
7
{
Original file line number Diff line number Diff line change 12
12
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.2.0" />
13
13
<PackageReference Include =" xunit" Version =" $(XUnitVersion)" />
14
14
<PackageReference Include =" Moq" Version =" $(MoqVersion)" />
15
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 2.0.2" />
15
16
</ItemGroup >
16
17
</Project >
You can’t perform that action at this time.
0 commit comments