You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HI ,
I tried to call endpoints in Post call with below request load and popup a runtime error as "System.NullReferenceException: Object reference not set to an instance of an object. at Subscriptions.Domain.Customer.AddSubscription(Product product, ISubscriptionAmountCalculator subscriptionAmountCalculator) in D:\learning\ddd_sample\Subscriptions-DDD\Subscriptions\Domain\Customer.cs:line 36"
Can you please help me to fix it on after code repo ?
Thanks,
The text was updated successfully, but these errors were encountered:
tutul2010
changed the title
showing an exception on POST call of a endpoint in after-Subscriptions code repo
showing an exception on POST call of an endpoint in after-Subscriptions code repo
Sep 6, 2023
HI ,
I tried to call endpoints in Post call with below request load and popup a runtime error as "System.NullReferenceException: Object reference not set to an instance of an object. at Subscriptions.Domain.Customer.AddSubscription(Product product, ISubscriptionAmountCalculator subscriptionAmountCalculator) in D:\learning\ddd_sample\Subscriptions-DDD\Subscriptions\Domain\Customer.cs:line 36"
Endpoints - https://localhost:5001/subscriptions

Verb- Post
Request payload(as json) -
{
"CustomerId": "4D2ECE0D-4CDC-4CDC-8315-53AB89B4F05D",
"ProductId": "7D037E64-53AA-4BC3-BAF1-F8480F585969"
}
Below attached error runtime exception as below,
Can you please help me to fix it on after code repo ?
Thanks,
The text was updated successfully, but these errors were encountered: