Using MSTest and the ObjectFactory

Using MSTest and the ObjectFactory

Old forum URL: forums.lhotka.net/forums/t/12726.aspx


NotEnoughTime posted on Wednesday, August 20, 2014

I am in the process of setting up Automated Tests using MSTest.  I would like to create a Mock DAL for the Test project.  The WPF app loads the DAL based on the appSettings tags in the App.Config file (CslaDataPortalProxy, ObjectFactoryAssembly, CslaObjectFactoryLoader).

The MSTest project does not have an app.config file so how I can point that project to the Mock DAL?

 

Using CSLA 4.5.501 and Visual Studio 2013.

NotEnoughTime replied on Friday, August 22, 2014

The answer is to add an app.config file to the test project.

NotEnoughTime replied on Friday, August 22, 2014

The answer is to add an app.config file to the test project.  Then add the appropriate tags to the app.config file.

Copyright (c) Marimer LLC