public void SetUp() { this.transactionScope = new TransactionScope(); this.jobRepository = new JobRepository(ConfigurationManager.ConnectionStrings["BBOS"].ConnectionString); this.jobStatusTypeRepository = new JobStatusTypeRepository(ConfigurationManager.ConnectionStrings["BBOS"].ConnectionString); this.job = BuildMeA.Job(DateTime.Now, DateTime.Now, DateTime.Now, "jwelkjwejwe", "grid"); this.jobStatusType = BuildMeA.JobStatusType("job status descrip"); this.managementCompany = BuildMeA.ManagementCompany("manconame", "mancocode", "mancoshortname", "rufudbid"); this.manCoDoc = BuildMeA.ManCoDoc(2, 3, "Pub file name", "version", 2); this.parentCompany = BuildMeA.ParentCompany("parent company name"); this.managementCompany.ParentCompany = this.parentCompany; this.user = BuildMeA.ApplicationUser("user"); this.job.User = this.user; }
public void SetUp() { this.transactionScope = new TransactionScope(); this.applicationUserRepository = new ApplicationUserRepository(ConfigurationManager.ConnectionStrings["BBOS"].ConnectionString); this.jobStatusRepository = new JobStatusRepository(ConfigurationManager.ConnectionStrings["BBOS"].ConnectionString); this.jobRepository = new JobRepository(ConfigurationManager.ConnectionStrings["BBOS"].ConnectionString); this.jobStatusTypeRepository = new JobStatusTypeRepository(ConfigurationManager.ConnectionStrings["BBOS"].ConnectionString); this.user = BuildMeA.ApplicationUser("UserName"); this.applicationUserRepository.Create(user); this.job = BuildMeA.Job(DateTime.Now, DateTime.Now, DateTime.Now, String.Empty, "dfsdfjdf"); this.job.ManCoDocID = 10; this.job.UserID = this.user.Id; this.jobRepository.Create(this.job); this.jobStatusType = BuildMeA.JobStatusType("descrip"); this.jobStatusTypeRepository.Create(this.jobStatusType); this.jobStatus = BuildMeA.JobStatus(DateTime.Now).WithJobStatusType(this.jobStatusType); this.jobStatus.JobID = this.job.JobID; }