Skip to content

Commit 2ebbac7

Browse files
committed
Re-generate async for tests
1 parent f4807d1 commit 2ebbac7

File tree

1 file changed

+1
-22
lines changed
  • src/NHibernate.Test/Async/NHSpecificTest/NH1845

1 file changed

+1
-22
lines changed

src/NHibernate.Test/Async/NHSpecificTest/NH1845/Fixture.cs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,14 @@
88
//------------------------------------------------------------------------------
99

1010

11-
using NHibernate.Cfg.MappingSchema;
12-
using NHibernate.Mapping.ByCode;
1311
using NUnit.Framework;
1412
namespace NHibernate.Test.NHSpecificTest.NH1845
1513
{
1614
using System.Threading.Tasks;
1715
using System.Threading;
1816
[TestFixture]
19-
public class FixtureAsync : TestCaseMappingByCode
17+
public class FixtureAsync : BugTestCase
2018
{
21-
protected override HbmMapping GetMappings()
22-
{
23-
var mapper = new ModelMapper();
24-
mapper.Class<Category>(rc =>
25-
{
26-
rc.Id(x => x.Id, map => map.Generator(Generators.Native));
27-
rc.Property(x => x.Name);
28-
rc.ManyToOne(x => x.Parent, map => map.Column("ParentId"));
29-
rc.Bag(x => x.Subcategories, map =>
30-
{
31-
map.Access(Accessor.NoSetter);
32-
map.Key(km => km.Column("ParentId"));
33-
map.Cascade(Mapping.ByCode.Cascade.All.Include(Mapping.ByCode.Cascade.DeleteOrphans));
34-
}, rel => rel.OneToMany());
35-
});
36-
var mappings = mapper.CompileMappingForAllExplicitlyAddedEntities();
37-
return mappings;
38-
}
39-
4019
[Test]
4120
public async Task LazyLoad_Initialize_AndEvictAsync()
4221
{

0 commit comments

Comments
 (0)