Skip to content

Commit c55a4f1

Browse files
committed
Naming style cleanup in the persistent collection classes.
1 parent 0d96cdc commit c55a4f1

File tree

7 files changed

+206
-217
lines changed

7 files changed

+206
-217
lines changed

src/NHibernate.Test/NHSpecificTest/NH1136/PersistentMilestoneCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public PersistentMilestoneCollection(ISessionImplementor session) : base(session
2020
public TValue FindValueFor(TKey key)
2121
{
2222
Read();
23-
return ((IMilestoneCollection<TKey, TValue>) gmap).FindValueFor(key);
23+
return ((IMilestoneCollection<TKey, TValue>) WrappedMap).FindValueFor(key);
2424
}
2525

2626
#endregion

src/NHibernate.Test/NHSpecificTest/NH3590/Fixture.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ namespace NHibernate.Test.NHSpecificTest.NH3590
77
[TestFixture]
88
public class Fixture : BugTestCase
99
{
10-
private Entity entity;
10+
private Entity _entity;
1111

1212
protected override void OnSetUp()
1313
{
14-
entity = new Entity();
14+
_entity = new Entity();
1515
using (var s = OpenSession())
1616
{
1717
using (var tx = s.BeginTransaction())
1818
{
19-
s.Save(entity);
19+
s.Save(_entity);
2020
tx.Commit();
2121
}
2222
}
@@ -25,12 +25,12 @@ protected override void OnSetUp()
2525
[Test]
2626
public void ShouldUpdate()
2727
{
28-
entity.Dates.Add(DateTime.Now);
28+
_entity.Dates.Add(DateTime.Now);
2929
using (var s = OpenSession())
3030
{
3131
using (var tx = s.BeginTransaction())
3232
{
33-
s.Update(entity);
33+
s.Update(_entity);
3434
tx.Commit();
3535
}
3636
}
@@ -39,7 +39,7 @@ public void ShouldUpdate()
3939
{
4040
using (s.BeginTransaction())
4141
{
42-
s.Get<Entity>(entity.Id).Dates.Count
42+
s.Get<Entity>(_entity.Id).Dates.Count
4343
.Should().Be.EqualTo(1);
4444
}
4545
}
@@ -48,12 +48,12 @@ public void ShouldUpdate()
4848
[Test]
4949
public void ShouldMerge()
5050
{
51-
entity.Dates.Add(DateTime.Now);
51+
_entity.Dates.Add(DateTime.Now);
5252
using (var s = OpenSession())
5353
{
5454
using (var tx = s.BeginTransaction())
5555
{
56-
s.Merge(entity);
56+
s.Merge(_entity);
5757
tx.Commit();
5858
}
5959
}
@@ -62,7 +62,7 @@ public void ShouldMerge()
6262
{
6363
using (s.BeginTransaction())
6464
{
65-
s.Get<Entity>(entity.Id).Dates.Count
65+
s.Get<Entity>(_entity.Id).Dates.Count
6666
.Should().Be.EqualTo(1);
6767
}
6868
}
@@ -74,7 +74,7 @@ protected override void OnTearDown()
7474
{
7575
using (var tx = s.BeginTransaction())
7676
{
77-
s.Delete(s.Get<Entity>(entity.Id));
77+
s.Delete(s.Get<Entity>(_entity.Id));
7878
tx.Commit();
7979
}
8080
}

0 commit comments

Comments
 (0)