public void Initialize() { networkOperations = Substitute.For<NetworkOperations>(); serviceControl = Substitute.For<IServiceControl>(); licenseRegistration = Substitute.For<LicenseRegistrationViewModel>(); sut = new AboutViewModel(networkOperations, serviceControl, licenseRegistration); }
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")); }