public void Initialize() { networkOperations = Substitute.For<NetworkOperations>(); serviceControl = Substitute.For<IServiceControl>(); licenseRegistration = Substitute.For<LicenseRegistrationViewModel>(); sut = new AboutViewModel(networkOperations, serviceControl, licenseRegistration); }
public LicenseRegistrationViewModel( AppLicenseManager licenseManager, IWindowManagerEx dialogManager, NetworkOperations network) { this.licenseManager = licenseManager; this.dialogManager = dialogManager; this.network = network; }
public AboutViewModel( NetworkOperations networkOperations, IServiceControl serviceControl, LicenseRegistrationViewModel licenseInfo) { this.serviceControl = serviceControl; License = licenseInfo; IsSplash = false; DisplayName = "About"; NavigateToSiteCommand = this.CreateCommand(() => networkOperations.Browse("http://www.particular.net")); }