File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- using Xunit ;
2- using JsonApiDotNetCore . Builders ;
31using System . Collections . Generic ;
2+ using JsonApiDotNetCore . Builders ;
3+ using Xunit ;
44
5- namespace JsonApiDotNetCoreExampleTests . Unit . Builders
5+ namespace UnitTests . Builders
66{
77 public class MetaBuilderTests
88 {
Original file line number Diff line number Diff line change 1010using JsonApiDotNetCoreExample . Data ;
1111using JsonApiDotNetCoreExample . Models ;
1212using Microsoft . AspNetCore . Http ;
13- using Microsoft . Extensions . Caching . Memory ;
1413using Microsoft . Extensions . DependencyInjection ;
15- using UnitTests ;
1614using Xunit ;
15+ using Microsoft . EntityFrameworkCore ;
1716
18- namespace JsonApiDotNetCoreExampleTests . Unit . Extensions
17+ namespace UnitTests . Extensions
1918{
2019 public class IServiceCollectionExtensionsTests
2120 {
@@ -28,7 +27,7 @@ public void AddJsonApiInternals_Adds_All_Required_Services()
2827
2928 services . AddDbContext < AppDbContext > ( options =>
3029 {
31- options . UseMemoryCache ( new MemoryCache ( new MemoryCacheOptions ( ) ) ) ;
30+ options . UseInMemoryDatabase ( ) ;
3231 } , ServiceLifetime . Transient ) ;
3332
3433 // act
Original file line number Diff line number Diff line change 11using JsonApiDotNetCore . Models ;
22using Xunit ;
33
4- namespace JsonApiDotNetCoreExampleTests . Unit . Models
4+ namespace UnitTests . Models
55{
66 public class AttributesEqualsTests
77 {
Original file line number Diff line number Diff line change 1212 <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.2.0" />
1313 <PackageReference Include =" xunit" Version =" $(XUnitVersion)" />
1414 <PackageReference Include =" Moq" Version =" $(MoqVersion)" />
15+ <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 2.0.2" />
1516 </ItemGroup >
1617</Project >
You can’t perform that action at this time.
0 commit comments