public virtual void Initialize() { ComponentType = typeof (DebugEngineUnderTest); Key = MockRepository.GenerateMock<RegistrationAttribute.Key>(); EngineAttribute = MockRepository.GenerateMock<ProvideDebugEngineAttribute>(ComponentType); Context = MockRepository.GenerateMock<RegistrationAttribute.RegistrationContext>(); }
internal static void CreateRegistryEntries(RegistrationAttribute.RegistrationContext context, string languageName, string categoryName, string categoryResourceId, Guid pageGuid) { using (RegistrationAttribute.Key serviceKey = context.CreateKey(FormatRegKey(languageName, categoryName))) { // Add specific entries corresponding to arguments to // constructor. serviceKey.SetValue(string.Empty, categoryResourceId); serviceKey.SetValue(RegistryPaths.package, context.ComponentType.GUID.ToString("B")); if (pageGuid != Guid.Empty) { serviceKey.SetValue(RegistryPaths.page, pageGuid.ToString("B")); } } }