Created
April 16, 2011 20:30
-
-
Save AlexZeitler/923466 to your computer and use it in GitHub Desktop.
mfakes, StructureMap and COM...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Establish context = () => { | |
With<SolidWorks2010OleConnected>(); | |
_solidWorks = The<ISolidWorks>(); | |
} | |
public class SolidWorks2010OleConnected { | |
OnEstablish context = | |
fakeAccessor => | |
{ | |
ISldWorks solidWorks = | |
new SolidWorksOleConnector().Connect(new SolidWorksVersion2010()); | |
fakeAccessor.Use(solidWorks); | |
}; | |
} | |
leads to: | |
StructureMap configuration failures: | |
Error: 104 | |
Source: Registry: StructureMap.Configuration.DSL.Registry, Machine.Fakes, Version=0.2.2.2, Culture=neutral, PublicKeyToken=null | |
Type Instance 'ef3b18ff-e4f1-445d-a611-fa09feb83798' (Object: System.__ComObject) cannot be plugged into type SolidWorks.Interop.sldworks.ISldWorks, SolidWorks.Interop.sldworks, Version=17.4.1.2, Culture=neutral, PublicKeyToken=7c4797c3e4eeac03 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment