You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
using System;
|
|
using EntityFramework.Jet.FunctionalTests.TestUtilities;
|
|
using Extensions.DependencyInjection;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage;
|
|
using Microsoft.EntityFrameworkCore.TestUtilities;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace EntityFramework.Jet.FunctionalTests
|
|
{
|
|
public class FieldMappingJetTest
|
|
: FieldMappingTestBase<FieldMappingJetTest.FieldMappingJetFixture>
|
|
{
|
|
public FieldMappingJetTest(FieldMappingJetFixture fixture)
|
|
: base(fixture)
|
|
{
|
|
}
|
|
|
|
protected override void UseTransaction(DatabaseFacade facade, IDbContextTransaction transaction)
|
|
=> facade.UseTransaction(transaction.GetDbTransaction());
|
|
|
|
public class FieldMappingJetFixture : FieldMappingFixtureBase
|
|
{
|
|
public FieldMappingJetFixture()
|
|
{
|
|
new ServiceCollection()
|
|
.AddEntityFrameworkJet()
|
|
.AddSingleton(TestModelSource.GetFactory(OnModelCreating))
|
|
.BuildServiceProvider();
|
|
}
|
|
|
|
protected override ITestStoreFactory TestStoreFactory => JetTestStoreFactory.Instance;
|
|
}
|
|
}
|
|
} |