Test service class using moq in asp.net
I have a service class like this:
I have a service class like this:
This is probably due to my lack of understanding as I’m new to xUnit and Moq but I’m trying to test a post method in my controller, however in the controller, I have this line of code: