public PluginRegistrationHelper(Action <string> logVerbose, Action <string> logWarning) { this.logVerbose = logVerbose; this.logWarning = logWarning; reflectionLoader = new ReflectionLoader(); pluginRegistrationObjectFactory = new PluginRegistrationObjectFactory(); }
public PluginRegistrationHelper(Action <string> logVerbose, Action <string> logWarning, IReflectionLoader reflectionLoader, IPluginRegistrationObjectFactory pluginRegistrationObjectFactory) { this.logVerbose = logVerbose; this.logWarning = logWarning; this.reflectionLoader = reflectionLoader; this.pluginRegistrationObjectFactory = pluginRegistrationObjectFactory; }
public void SetUp() { _fakeLoader = A.Fake <IReflectionLoader>(); _fakeObjectFactory = A.Fake <IPluginRegistrationObjectFactory>(); A.CallTo(() => _fakeLoader.Initialise(A <string> ._, A <string> ._)); A.CallTo(() => _fakeObjectFactory.GetAssembly(A <IReflectionLoader> ._)).Returns(new Assembly()); }
public PluginRegistrationHelper(IOrganizationService service, CIContext xrmContext, Action <string> logVerbose, Action <string> logWarning) { this.logVerbose = logVerbose; this.logWarning = logWarning; organizationService = service; pluginRepository = new PluginRepository(xrmContext); reflectionLoader = new ReflectionLoader(); pluginRegistrationObjectFactory = new PluginRegistrationObjectFactory(); }