コード例 #1
0
ファイル: EmployeesTest.cs プロジェクト: xbadcode/Rubezh
		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();
		}
コード例 #2
0
ファイル: DepartmentsTest.cs プロジェクト: xbadcode/Rubezh
		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();
		}