mocking - How to prevent a call to the data layer from a mocked object -
Text after "div class =" itemprop = "text"> I have a business objective that I am joking about testing for business (using the Moq). When I call the object, it calls another business object that goes to the data layer. I have the objective that I can set a return for calls within the written, but how can I prevent it from calling other objects and moving into the data layer? Is there a standard practice to stop this? Apologies if this is not clear enough; I will answer those questions as I have been asked! Thank you An example of a code here, simplified is just a bit: Business Test In the form of a slow mockPer New Fake (IYTDMarketShrink) Create items for use in 'DLL Kolling' test as new cConfiguration cConfig.Environment = Ent.MeijerEnvironmentEnum.DEVELOPMENT as new Clogger Production Deccoconfig. New system as demat test data. DataDetDetestadata RedXLSKema ("MarketSpreadDataAxAsd") Dstestadata .ReadXml ("MarketShrinkPerTestDa...