@@ -114,7 +114,6 @@ public async Task ListAddAsync(bool initialize)
114
114
Assert . That ( Sfi . Statistics . PrepareStatementCount , Is . EqualTo ( 0 ) , "Statements count after adding through IList" ) ;
115
115
Assert . That ( NHibernateUtil . IsInitialized ( gavin . Companies ) , Is . False , "Companies initialization status after adding through IList" ) ;
116
116
117
-
118
117
// Check existence of added companies
119
118
Sfi . Statistics . Clear ( ) ;
120
119
// Have to skip unloaded (non-queued indeed) elements to avoid triggering existence queries on them.
@@ -982,7 +981,7 @@ public async Task ListClearAsync(bool initialize)
982
981
983
982
var collection = gavin . CreditCards ;
984
983
985
- // Add transient permissions
984
+ // Add transient credit cards
986
985
Sfi . Statistics . Clear ( ) ;
987
986
for ( var i = 5 ; i < 10 ; i ++ )
988
987
{
@@ -1004,7 +1003,7 @@ public async Task ListClearAsync(bool initialize)
1004
1003
Assert . That ( Sfi . Statistics . PrepareStatementCount , Is . EqualTo ( 0 ) , "Statements count after clearing" ) ;
1005
1004
Assert . That ( NHibernateUtil . IsInitialized ( collection ) , Is . False , "Credit cards initialization status after clearing" ) ;
1006
1005
1007
- // Re-add two not loaded and two transient permissions
1006
+ // Re-add two not loaded and two transient credit cards
1008
1007
collection . Add ( addedItems [ 0 ] ) ;
1009
1008
collection . Add ( addedItems [ 1 ] ) ;
1010
1009
collection . Add ( addedItems [ 5 ] ) ;
@@ -1014,7 +1013,7 @@ public async Task ListClearAsync(bool initialize)
1014
1013
Assert . That ( Sfi . Statistics . PrepareStatementCount , Is . EqualTo ( 0 ) , "Statements count after re-adding" ) ;
1015
1014
Assert . That ( NHibernateUtil . IsInitialized ( collection ) , Is . False , "Credit cards initialization status after re-adding" ) ;
1016
1015
1017
- // Remove one not loaded and one transient permissions
1016
+ // Remove one not loaded and one transient credit cards
1018
1017
Assert . That ( collection . Remove ( addedItems [ 1 ] ) , Is . True , "Removing not loaded credit card" ) ;
1019
1018
Assert . That ( collection . Remove ( addedItems [ 6 ] ) , Is . True , "Removing transient credit card" ) ;
1020
1019
@@ -1042,7 +1041,6 @@ public async Task ListClearAsync(bool initialize)
1042
1041
Assert . That ( collection . Count , Is . EqualTo ( 2 ) , "Credit cards count after enumerating" ) ;
1043
1042
}
1044
1043
1045
-
1046
1044
await ( t . CommitAsync ( ) ) ;
1047
1045
}
1048
1046
@@ -1052,7 +1050,7 @@ public async Task ListClearAsync(bool initialize)
1052
1050
gavin = await ( s . GetAsync < User > ( "gavin" ) ) ;
1053
1051
var collection = gavin . CreditCards ;
1054
1052
// As the cascade option is set to all, the clear operation will only work on
1055
- // transient permissions
1053
+ // transient credit cards
1056
1054
Assert . That ( collection . Count , Is . EqualTo ( 6 ) , "Credit cards count after loading again Gavin" ) ;
1057
1055
for ( var i = 0 ; i < 10 ; i ++ )
1058
1056
{
@@ -1500,7 +1498,6 @@ public async Task SetAddTransientAsync(bool initialize)
1500
1498
Assert . That ( Sfi . Statistics . PrepareStatementCount , Is . EqualTo ( 6 ) , "Statements count after re-adding loaded elements" ) ;
1501
1499
Assert . That ( NHibernateUtil . IsInitialized ( gavin . Permissions ) , Is . False , "Permissions initialization status after re-adding loaded elements" ) ;
1502
1500
1503
-
1504
1501
// Test adding permissions with ISet interface
1505
1502
Sfi . Statistics . Clear ( ) ;
1506
1503
for ( var i = 0 ; i < 5 ; i ++ )
@@ -1831,7 +1828,6 @@ public async Task SetClearAsync(bool initialize)
1831
1828
Assert . That ( collection . Count , Is . EqualTo ( 2 ) , "Permissions count after enumerating" ) ;
1832
1829
}
1833
1830
1834
-
1835
1831
await ( t . CommitAsync ( ) ) ;
1836
1832
}
1837
1833
0 commit comments