Ejemplo n.º 1
0
        public static BusinessObject.Tax1040 CreateTaxObject()
        {
            BusinessObject.Tax1040 tax1040 = new BusinessObject.Tax1040();
            tax1040.UserDataId = 0;

            var    randomValue = Guid.NewGuid().ToString().Substring(0, 5);
            Random randomSecurityQuestionID = new Random();
            var    year            = randomSecurityQuestionID.Next(-30, -20);
            var    primaryTaxPayer = new PrimaryTaxPayer
            {
                Person = new Person
                {
                    PersonId      = 0,
                    FirstName     = "first name" + randomValue,
                    MiddleInitial = 'M',
                    LastName      = "last name" + randomValue,
                    NickName      = "nick name" + randomValue,
                    Occupation    = "occupation",
                    DateOfBirth   = DateTime.Now.AddYears(year),
                    SSN           = "ssn001",
                    PersonType    = PersonType.PrimaryTaxPayer,
                    HasPrimaryFilerEcfContributed = false,
                    HasSpouseEcfContributed       = false,
                    IsLegallyBlind        = false,
                    IsDisabled            = false,
                    HasClaimedAsDependent = false,
                    IsDied            = false,
                    DateOfDeath       = DateTime.Now,
                    IsStudent         = false,
                    IsFullTimeStudent = false
                },
                FilingStatus = FilingStatus.Single
            };

            if (tax1040.PersonalDetails == null)
            {
                tax1040.PersonalDetails = new PersonalDetails()
                {
                    PrimaryTaxPayer = new PrimaryTaxPayer()
                    {
                        FilingStatus = FilingStatus.Single
                    }
                };
            }

            tax1040.PersonalDetails.PrimaryTaxPayer = primaryTaxPayer;

            tax1040.Income = new Income();

            tax1040.Income.Form1099INT = CreateForm1099INT(OwnerType.PrimaryTaxPayer);
            tax1040.Income.Form1099OID = CreateForm1099OID();
            tax1040.Income.W2Wages     = CreateW2();

            return(tax1040);
        }
Ejemplo n.º 2
0
        public static PrimaryTaxPayer CreateUser(FilingStatus filingStatus)
        {
            PrimaryTaxPayer primarytaxpayer = new PrimaryTaxPayer
            {
                Person = new Person
                {
                    FirstName = "",
                },
                FilingStatus = filingStatus
            };

            return(primarytaxpayer);
        }