public void FinishPayment(string paymentId) { //this is emulation too. Payment Id should be used to get subscription id //and only after that we can get subscription instance Subscription sub; AwaitingSubscriptions.TryGetValue(paymentId, out sub); var cost = _priceService.CalculatePrice(sub); var subscriptionCommand = new SubscriptionCreateCommand(sub.ReleaseId, sub.UtcExpirationDate, cost, sub.ShopIds, sub.OwnerId); ActorModel.TellReleaseActor(subscriptionCommand.ReleaseId, subscriptionCommand); }