コード例 #1
0
ファイル: EmployeesTest.cs プロジェクト: xbadcode/Rubezh
		public void Initialize()
		{
			ClientManager.SecurityConfiguration = new SecurityConfiguration();
			User = new User { Login = "adm" };
			ClientManager.SecurityConfiguration.Users.Add(User);
			ClientManager._userLogin = "adm";

			ServiceFactory.Initialize(null, null);
			ServiceFactory.DialogService = MockDialogService = new MockDialogService();
			ServiceFactory.MessageBoxService = MockMessageBoxService = new MockMessageBoxService();
		}
コード例 #2
0
ファイル: DepartmentsTest.cs プロジェクト: xbadcode/Rubezh
		public void Initialize()
		{
			ClientManager.SecurityConfiguration = new SecurityConfiguration();
			User = new User { Login = "adm" };
			ClientManager.SecurityConfiguration.Users.Add(User);
			ClientManager._userLogin = "adm";
			ClientManager.CurrentUser.PermissionStrings.Add("Oper_SKD_Departments_Etit");

			ServiceFactory.Initialize(null, null);
			ServiceFactory.DialogService = MockDialogService = new MockDialogService();
			ServiceFactory.MessageBoxService = MockMessageBoxService = new MockMessageBoxService();
		}