Unable to add the Grain Runtime in Unit test cases

42 Views Asked by At

I am trying to unit test my custom grain and in doing that Grain constructor is throwing null reference exception at Runtime.Context.

Tried scenarios:

For the point 2, GrainFactory is coming null, tried adding public and virtual so as to mock but still throwing error:

public new virtual IGrainFactory GrainFactory  
{  
get =\> base.GrainFactory;  
}
0

There are 0 best solutions below