/tags/1.31/src/Tests/BehaveTest/BehaveOrganizationUtils.cs
C# | 64 lines | 41 code | 6 blank | 17 comment | 0 complexity | cbe54ff6502deee866b796c741e27612 MD5 | raw file
Possible License(s): AGPL-1.0, LGPL-2.1
- /****************************************************************************************************
- Copyright (C) 2010 RapidWebDev Organization (http://rapidwebdev.org)
- Author: Tim, Legal Name: Long Yi, Email: tim.yi@RapidWebDev.org
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- ****************************************************************************************************/
- using System;
- using System.IO;
- using System.Collections.Generic;
- using System.Linq;
- using System.Data.Linq;
- using System.Text;
- using System.Transactions;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Xml;
- using System.Xml.Schema;
- using NUnit.Framework;
- using BaoJianSoft.Common;
- using BaoJianSoft.Platform;
- using BaoJianSoft.Platform.Linq;
- using BaoJianSoft.RapidWeb;
- using BaoJianSoft.RapidWeb.DynamicPages;
- using BaoJianSoft.RapidWeb.Controls;
-
- namespace BaoJianSoft.Tests.BehaveTest
- {
- public class BehaveOrganizationUtils
- {
- public OrganizationObject CreateOrganizationObject(Guid _OrganizationTypeId,string Name,string code)
- {
-
-
- OrganizationObject shOrganization = new OrganizationObject
- {
- OrganizationCode = code,
- OrganizationName = Name,
- OrganizationTypeId = _OrganizationTypeId,
- Status = OrganizationStatus.Enabled,
- Description = "sh-desc"
- };
-
- return shOrganization;
- }
-
- public OrganizationTypeObject CreateOrganizationTypeOject(string _Name,string _Domain)
- {
- OrganizationTypeObject department = new OrganizationTypeObject { Name = _Name, Domain = _Domain, Description = "department-desc" };
-
- return department;
- }
- }
- }