File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,10 @@ public class TestCappedResponseRegistry
1212 [ Fact ]
1313 public void CanOnlyAddToCapacity ( )
1414 {
15- var responseRegistry = new ResponseRegistry ( ) ;
16- responseRegistry . Capacity = 100 ;
15+ var responseRegistry = new ResponseRegistry
16+ {
17+ Capacity = 100
18+ } ;
1719 for ( int i = 0 ; i < 1000 ; i ++ )
1820 {
1921 responseRegistry . Add ( new ResponseRegistryItem ( ) ) ;
@@ -24,8 +26,10 @@ public void CanOnlyAddToCapacity()
2426 [ Fact ]
2527 public void OnlyLastAddedAreAvailable ( )
2628 {
27- var responseRegistry = new ResponseRegistry ( ) ;
28- responseRegistry . Capacity = 100 ;
29+ var responseRegistry = new ResponseRegistry
30+ {
31+ Capacity = 100
32+ } ;
2933 for ( int i = 0 ; i < 1000 ; i ++ )
3034 {
3135 responseRegistry . Add ( new ResponseRegistryItem ( ) ) ;
You can’t perform that action at this time.
0 commit comments