Ejemplo n.º 1
0
 public void AddProject(InvestigationProject project)
 {
     this._projectStorage.Add(project);
 }
Ejemplo n.º 2
0
        public static void SeedData(IFormDataService formDataService)
        {
            Claim claim = new Claim
            {
                ClaimNumber    = "12346-CSF",
                ClientID       = "CL-333",
                DateOfEvent    = DateTime.Now,
                ScopeOfWork    = null,
                TypeOfLocation = ClaimLocationType.COMMERCIAL,
                TypeOfClaim    = ClaimType.ELECTRICAL
            };

            ContactInfo primaryContact = new ContactInfo
            {
                FirstName = "John",
                LastName  = "Doe",
                Email     = "*****@*****.**",
                Phone     = "418-555-5555"
            };

            ContactInfo insuredPerson = new ContactInfo
            {
                FirstName = "Jane",
                LastName  = "Doe",
                Email     = "*****@*****.**",
                Phone     = "123-456-6666"
            };

            Client client = new Client
            {
                ClientID       = "CL-333",
                CompanyName    = "SSQ",
                OtherContact   = null,
                PrimaryContact = primaryContact
            };

            Document document = new Document
            {
                DocumentContent = null,
                DocumentName    = "testDoc456",
                DocumentPath    = "C//Users//Documents//"
            };

            InsuredEntity insuredEntity = new InsuredEntity
            {
                InsuredContactInfo = insuredPerson
            };

            InvestigationProject project = new InvestigationProject
            {
                ProjectClaim         = claim,
                ProjectClient        = client,
                ProjectID            = "TestID-1123456",
                ProjectInsuredEntity = insuredEntity,
                ProjectLocationType  = claim.TypeOfLocation,
                ProjectType          = claim.TypeOfClaim,
                ProjectStatus        = ProjectStatus.PENDING
            };

            project.ProjectDocuments.Add(document);

            formDataService.AddProject(project);
        }