private FabricHostEntryPoint CreateAndInvokeStartWithDefaults() { var hep = new FabricHostEntryPoint(); this.InvokeStartWithDefaults(hep); return(hep); }
private void InvokeStartWithDefaults(FabricHostEntryPoint hep) { hep.Start( Constants.DefaultLogDirectory, FabricHostEntryPointTest.BinariesDir, Constants.DefaultAppDomainConfigFilePath, Constants.DefaultHostEntryPointManagerUniqueId); }
private void InvokeActivate(FabricHostEntryPoint hep, ActivationParameters activationParams, bool validate = true) { if (validate) { activationParams.Validate(); } hep.ActivateCodePackageInternal( activationParams.ActivationContextId, activationParams.CodePackageName, activationParams.CodePackageActivationContext, activationParams.Stub); }
public void HEP_Constructor_InitialActiveCodePackageCountIsZero() { var hep = new FabricHostEntryPoint(); Assert.AreEqual(0, hep.ActiveCodePackageCount); }