Inheritance: INotifyPropertyChanged, IActivate, IHaveDisplayName
        public void Initialize()
        {
            networkOperations = Substitute.For<NetworkOperations>();
            serviceControl = Substitute.For<IServiceControl>();
            licenseRegistration = Substitute.For<LicenseRegistrationViewModel>();

            sut = new AboutViewModel(networkOperations, serviceControl, licenseRegistration);
        }
Exemplo n.º 2
0
        public static Window AsSplashScreen()
        {
            var vm   = AboutViewModel.AsSplashScreenModel();
            var view = new AboutView {
                DataContext = vm, WindowStyle = WindowStyle.None
            };

            return(view);
        }
Exemplo n.º 3
0
 public static AboutViewModel AsSplashScreenModel()
 {
     var vm = new AboutViewModel();
     vm.Activate();
     return vm;
 }