@@ -19,8 +19,8 @@ public void IsTransitionAllowed_SingleValidTransition_ReturnsTrue()
1919 . Build ( ) ;
2020
2121 var callHistory = new CallHistory ( ) ;
22- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
23- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
22+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
23+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
2424
2525 Assert . True ( graph . IsTransitionAllowed ( callHistory ) ) ;
2626}
@@ -36,8 +36,8 @@ public void IsTransitionAllowed_InvalidTransition_ReturnsFalse()
3636 . Build ( ) ;
3737
3838 var callHistory = new CallHistory ( ) ;
39- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
40- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
39+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
40+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
4141
4242 Assert . False ( graph . IsTransitionAllowed ( callHistory ) ) ;
4343}
@@ -72,8 +72,8 @@ public void IsTransitionAllowed_ReentrancyAllowed_ReturnsTrue()
7272 . Build ( ) ;
7373
7474 var callHistory = new CallHistory ( ) ;
75- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
76- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
75+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
76+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
7777
7878 Assert . True ( graph . IsTransitionAllowed ( callHistory ) ) ;
7979}
@@ -89,8 +89,8 @@ public void IsTransitionAllowed_MethodRuleAllowed_ReturnsTrue()
8989 . Build ( ) ;
9090
9191 var callHistory = new CallHistory ( ) ;
92- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
93- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
92+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
93+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
9494
9595 Assert . True ( graph . IsTransitionAllowed ( callHistory ) ) ;
9696}
@@ -105,8 +105,8 @@ public void IsTransitionAllowed_SelfLoopTransition_ReturnsTrue()
105105 . Build ( ) ;
106106
107107 var callHistory = new CallHistory ( ) ;
108- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
109- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
108+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
109+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
110110
111111 Assert . True ( graph . IsTransitionAllowed ( callHistory ) ) ;
112112}
@@ -122,8 +122,8 @@ public void IsTransitionAllowed_DisallowedTransition_ReturnsFalse()
122122 . Build ( ) ;
123123
124124 var callHistory = new CallHistory ( ) ;
125- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
126- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainC ) . FullName , nameof ( IGrainC . MethodC1 ) ) ) ;
125+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
126+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainC ) . FullName , nameof ( IGrainC . MethodC1 ) ) ) ;
127127
128128 Assert . False ( graph . IsTransitionAllowed ( callHistory ) ) ;
129129}
@@ -143,10 +143,10 @@ public void IsTransitionAllowed_MultipleValidTransitions_ReturnsTrue()
143143 . Build ( ) ;
144144
145145 var callHistory = new CallHistory ( ) ;
146- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
147- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
148- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
149- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainC ) . FullName , nameof ( IGrainC . MethodC1 ) ) ) ;
146+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
147+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
148+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
149+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainC ) . FullName , nameof ( IGrainC . MethodC1 ) ) ) ;
150150
151151 Assert . True ( graph . IsTransitionAllowed ( callHistory ) ) ;
152152}
@@ -162,8 +162,8 @@ public void IsTransitionAllowed_InvalidMethodRule_ReturnsFalse()
162162 . Build ( ) ;
163163
164164 var callHistory = new CallHistory ( ) ;
165- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
166- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainB ) . FullName , "MethodC2" ) ) ;
165+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
166+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainB ) . FullName , "MethodC2" ) ) ;
167167
168168 Assert . False ( graph . IsTransitionAllowed ( callHistory ) ) ;
169169}
@@ -212,12 +212,12 @@ public void IsTransitionAllowed_DetectsSimpleLoop_ReturnsFalse()
212212 . Build ( ) ;
213213
214214 var callHistory = new CallHistory ( ) ;
215- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
216- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
217- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
218- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainC ) . FullName , nameof ( IGrainC . MethodC1 ) ) ) ;
219- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainC ) . FullName , nameof ( IGrainC . MethodC1 ) ) ) ;
220- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
215+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
216+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
217+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
218+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainC ) . FullName , nameof ( IGrainC . MethodC1 ) ) ) ;
219+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainC ) . FullName , nameof ( IGrainC . MethodC1 ) ) ) ;
220+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
221221
222222 Assert . False ( graph . IsTransitionAllowed ( callHistory ) ) ;
223223}
@@ -237,10 +237,10 @@ public void IsTransitionAllowed_NoLoop_ReturnsTrue()
237237 . Build ( ) ;
238238
239239 var callHistory = new CallHistory ( ) ;
240- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
241- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
242- callHistory . Push ( new Call ( Direction . Out , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
243- callHistory . Push ( new Call ( Direction . In , typeof ( IGrainC ) . FullName , nameof ( IGrainC . MethodC1 ) ) ) ;
240+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainA ) . FullName , nameof ( IGrainA . MethodA1 ) ) ) ;
241+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
242+ callHistory . Push ( new Call ( null , null , Direction . Out , typeof ( IGrainB ) . FullName , nameof ( IGrainB . MethodB1 ) ) ) ;
243+ callHistory . Push ( new Call ( null , null , Direction . In , typeof ( IGrainC ) . FullName , nameof ( IGrainC . MethodC1 ) ) ) ;
244244
245245 Assert . True ( graph . IsTransitionAllowed ( callHistory ) ) ;
246246}
0 commit comments