public void Initialize()
        {
            _networkOperations = Substitute.For<INetworkOperations>();
            _serviceControl = Substitute.For<IServiceControl>();
            _licenseRegistration = Substitute.For<ILicenseRegistrationViewModel>();

            _sut = new AboutViewModel(_networkOperations, _serviceControl, _licenseRegistration);
        }
Exemplo n.º 2
0
        public static Window AsSplashScreen()
        {
            var vm   = AboutViewModel.AsSplashScreenModel();
            var view = new AboutView {
                DataContext = vm
            };

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