public void Initialize() { ClientManager.SecurityConfiguration = new SecurityConfiguration(); User = new User { Login = "******" }; ClientManager.SecurityConfiguration.Users.Add(User); ClientManager._userLogin = "******"; ServiceFactory.Initialize(null, null); ServiceFactory.DialogService = MockDialogService = new MockDialogService(); ServiceFactory.MessageBoxService = MockMessageBoxService = new MockMessageBoxService(); }
public void Initialize() { ClientManager.SecurityConfiguration = new SecurityConfiguration(); User = new User { Login = "******" }; ClientManager.SecurityConfiguration.Users.Add(User); ClientManager._userLogin = "******"; ClientManager.CurrentUser.PermissionStrings.Add("Oper_SKD_Departments_Etit"); ServiceFactory.Initialize(null, null); ServiceFactory.DialogService = MockDialogService = new MockDialogService(); ServiceFactory.MessageBoxService = MockMessageBoxService = new MockMessageBoxService(); }