public async Task LoginCommand_WhenUsernameAndOrPasswordEmpty_TestAsync()
        {
            await _viewModel.NavigatedToAsync <object>(null);

            _viewModel.LoginCommand.Execute(null);
            MockAlertService.Verify(x => x.ShowAlertAsync(AppResources.strAlert, AppResources.alertUsernamePasswordRequired, It.IsAny <string>(), It.IsAny <string>()));
        }
        public async Task LoginCommand_WhenAuthorizedUserLogsInButNoUserDataFound_TestAsync()
        {
            await _viewModel.NavigatedToAsync <object>(null);

            _viewModel.Username = "******";
            _viewModel.Password = "******";
            _mockLoginDataAccess.Setup(x => x.Login(It.IsAny <string>(), It.IsAny <string>()))
            .Returns(Task.FromResult(new Model.LoginResult
            {
                IsAuthenticated = true,
                User            = null
            }));
            _viewModel.LoginCommand.Execute(null);
            MockAlertService.Verify(x => x.ShowAlertAsync(AppResources.strAlert, AppResources.alertGeneralErrorMessage, It.IsAny <string>(), It.IsAny <string>()));
        }
        public void Initialize()
        {
            workItem = new TestableRootWorkItem();
            workItem.Services.AddNew <WorkspaceLocatorService, IWorkspaceLocatorService>();
            workspace = workItem.Workspaces.AddNew <MockWorkspace>();

            queueEntry             = workItem.Items.AddNew <QueueEntry>("QueueEntry");
            queueEntry.Person      = new Customer();
            finderService          = workItem.Services.AddNew <MockCustomerFinderService, ICustomerFinderService>();
            queueService           = workItem.Services.AddNew <MockQueueService, ICustomerQueueService>();
            customerAccountService = workItem.Services.AddNew <MockCustomerAccountService, ICustomerAccountService>();
            alertService           = workItem.Services.AddNew <MockAlertService, ICustomerAlertService>();

            view           = workItem.SmartParts.AddNew <MockCustomerSummaryView>();
            presenter      = workItem.Items.AddNew <TestablePresenter>();
            presenter.View = view;
            workspace.Show(view);
        }