mellowzippy
Unit Testing ASP.NET async api service
Okay. I am trying to make a unit test for my Customer Service. I tried starting with the Read operation which looks like this in my service:
I tried using this as a guide: https://learn.microsoft.com/en-us/ef/ef6/fundamentals/testing/mocking#testing-query-scenarios
33 replies
✅ ASP.NET 'web' application
My exercise says the following:
The path of the folder where we store the addresses should be customized: extend your program to read it from the appsettings.
. I think I should just make the path (which is a json file) an environment variable in the appsettings. Does that make sense to do or should I just ask the teacher?
If there are any other options that might work with the use of appsettings then please tell me.14 replies