示例#1
0
		public LoginViewModel(IFlowdockContext context, IAppSettings settings, INavigationManager navigationManager) {
			_context = context.ThrowIfNull("context");
			_settings = settings.ThrowIfNull("storage");
			_navigationManager = navigationManager.ThrowIfNull("navigationManager");

			_loginCommand = new LoginCommand(this, context);
			_loginCommand.LoggedIn += OnLoggedIn;
		}
		public void BeforeEach() {
			_flowdockContext = new FlowdockContextMoqaLate();
			_loginViewModel = new LoginViewModel(_flowdockContext, new AppSettingsMoqaLate(), new NavigationManagerMoqaLate());
			_command = new LoginCommand(_loginViewModel, _flowdockContext);
		}