private static async Task<CustomerOrderActor> CreateCustomerOrderActor(MockServiceProxyFactory serviceProxyFactory)
{
try
{
CustomerOrderActor target = new CustomerOrderActor(
new ActorService(
context: statefulServiceContext,
actorTypeInfo: ActorTypeInformation.Get(typeof(CustomerOrderActor)),
stateManagerFactory: (actorBase, stateProvider) => new MockActorStateManager()),
new ActorId(Guid.NewGuid()));
await target.InternalActivateAsync(codePackageContext, serviceProxyFactory);
return target;
}
catch (Exception e)
{
throw;
}
}