Esempio n. 1
0
		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();
		}
Esempio n. 2
0
		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();
		}