コード例 #1
0
        public void Initialize()
        {
            _networkOperations = Substitute.For<INetworkOperations>();
            _serviceControl = Substitute.For<IServiceControl>();
            _licenseRegistration = Substitute.For<ILicenseRegistrationViewModel>();

            _sut = new AboutViewModel(_networkOperations, _serviceControl, _licenseRegistration);
        }
コード例 #2
0
ファイル: About.xaml.cs プロジェクト: nanohex/ServiceInsight
        public static Window AsSplashScreen()
        {
            var vm   = AboutViewModel.AsSplashScreenModel();
            var view = new AboutView {
                DataContext = vm
            };

            return(view);
        }
コード例 #3
0
 public static AboutViewModel AsSplashScreenModel()
 {
     var vm = new AboutViewModel();
     vm.LoadAppVersion();
     return vm;
 }