public UploadWizardAction() { _settingsStore = Registry.GetComponent <ISettingsStore>(); _uploadWizardWindowCreator = Registry.GetComponent <IUploadWizardWindowCreator>(); _userProfileSettingsUtils = Registry.GetComponent <IUserProfileSettingsUtils>(); _logManager = Registry.GetComponent <ILogManager>(); }
public void Setup() { _userProfileSettings = new UserProfileSettings(); _userProfileSettingsUtil = Mock.Of <IUserProfileSettingsUtils>(); _mockSettingsStore = new Mock <ISettingsStore>(); _windowCreator = Mock.Of <IUploadWizardWindowCreator>(); _mockLogManager = new Mock <ILogManager>(); _mockSettingsStore.Setup(settingStore => settingStore.GetSettings <UserProfileSettings>()) .Returns(_userProfileSettings); _exportSettings = new ExportSettings(); _mockSettingsStore.Setup(settingStore => settingStore.GetSettings <ExportSettings>()) .Returns(_exportSettings); Registry.RegisterComponent(_userProfileSettingsUtil); Registry.RegisterComponent(_mockSettingsStore.Object); Registry.RegisterComponent(_windowCreator); Registry.RegisterComponent(_mockLogManager.Object); _uut = new UploadWizardAction(); }