public static ProjectOrganization Create() { var project = TestProject.Create(); var organization = TestOrganization.Create(); return(Create(project, organization)); }
public static FundingSource Create() { var organization = TestOrganization.Create(); var fundingSource = FundingSource.CreateNewBlank(organization); fundingSource.IsActive = true; return(fundingSource); }
public static GrantAllocation Create() { var grantModification = TestGrantModification.Create(); var org = TestOrganization.Create(); var grantAllocation = TestGrantAllocation.Create(grantModification, GetTestGrantAllocationName(org, "Test Grant Allocation")); //GrantAllocation.IsActive = true; return(grantAllocation); }
public static Person Create() { var organization = TestOrganization.Create(); var person = Person.CreateNewBlank(Role.JurisdictionEditor, organization); person.Organization = organization; person.Email = MakeTestEmail("email"); person.FirstName = MakeTestName("firstName", Person.FieldLengths.FirstName); person.LastName = MakeTestName("lastName", Person.FieldLengths.LastName); return(person); }
public static Person Create() { var organization = TestOrganization.Create(); var person = new Person(MakeTestName("firstName", Person.FieldLengths.FirstName) , Role.Normal, DateTime.Now, true, false) { LastName = MakeTestName("lastName", Person.FieldLengths.LastName), Organization = organization, Email = MakeTestEmail("email") }; return(person); }
public static Person Create() { var organization = TestOrganization.Create(); var person = Person.CreateNewBlank(Role.Normal, organization); person.TenantID = Tenant.SitkaTechnologyGroup.TenantID; person.Organization = organization; person.Email = MakeTestEmail("email"); person.FirstName = MakeTestName("firstName", Person.FieldLengths.FirstName); person.LastName = MakeTestName("lastName", Person.FieldLengths.LastName); person.PasswordPdfK2SaltHash = null; return(person); }
public static StormwaterJurisdiction Create() { var jurisdiction = new StormwaterJurisdiction(TestOrganization.Create(), null, StormwaterJurisdictionPublicBMPVisibilityType.VerifiedOnly, StormwaterJurisdictionPublicWQMPVisibilityType.ActiveAndInactive); return(jurisdiction); }