I'm trying to get the connection string which is set up in the app.config. Initially, the project didn't have the app config, so I had to add it. In my main project, I have the DLL referencing the configuration but in the unit test project, there is not any configuration dll reference.
Let me mention that I'm trying to test a customer service that I mock with the Moq framework, however when it gets to get the configuration string down the line, it throws an exception.
Any ideas what goes wrong here?
This is the Null Reference exception I get
And below is the app.config file