public void Properly_Converts_Xml_To_One_InternalClaims()
        {
            // SETUP
            var converter = new MinistryHealthConverter();
            var mockClient = new Client {Name = "Ministry Health Care"};
            var results = converter.Process(@"Importer/Converters/MinistryHealth/MinistrySampleClaim.xml", mockClient);

            // Assert we have only one internal claim converted
            Assert.That(results.Count(),Is.EqualTo(1));
        }
        public void Converted_Ministry_Claim_Has_Corrent_Data()
        {
            // SETUP
            var converter = new MinistryHealthConverter();
            var mockClient = new Client { Name = "Ministry Health Care" };
            var results = converter.Process(@"Importer/Converters/MinistryHealth/MinistrySampleClaim.xml", mockClient);

            var claim = results.FirstOrDefault();

            // Assert various data point to ensure it maps correctly. Could add each point from file to
            // Build comprehensive test.
            Assert.That(claim.ClaimId, Is.EqualTo("1230000"));
            Assert.That(claim.AccidentDescription, Is.EqualTo("Broke Left Arm"));
        }
예제 #3
0
        /// <summary>
        /// If exists return ministry client else create one and return.
        /// </summary>
        /// <returns>Ministry Client</returns>
        private Client GetClient()
        {
            var client = _clientRepository.GetByClientName("Ministry Health Care");

            if (client != null)
                return client;

            var newClient = new Client {Name = "Ministry Health Care"};
            _clientRepository.Create(newClient);

            _uow.Commit();

            return newClient;
        }
예제 #4
0
        private void Initialize()
        {
            _client = new Client {Name = "SuperMedicalInsurace Inc."};
            _walmart = new Employer
                {
                    Name = "Walmart",
                    Address = new Address
                        {
                            Street = "4650 W North Ave",
                            City = "Chicago",
                            State = "IL",
                            Zipcode = "60639"
                        }
                };
            _shopKo = new Employer
                {
                    Name = "Shopko",
                    Address = new Address
                        {
                            Street = "2655 W Chicago Blvd",
                            City = "Chicago",
                            State = "IL",
                            Zipcode = "60639"
                        }
                };

            _policyHolder = new PolicyHolder
                {
                    FirstName = "John",
                    LastName = "Doe",
                    MiddleName = "Jay",
                    AccountNumber = "1005000",
                    Address = new Address
                        {
                            Street = "1 Apple Rd",
                            City = "Chicago",
                            State = "IL",
                            Zipcode = "60630"
                        },
                    DateOfBirth = DateTime.Parse("10/01/1965"),
                    EffectiveDate = DateTime.Parse("03/01/2013"),
                    Employer = _walmart
                };

            _spouse = new Dependent
                {
                    FirstName = "Jane",
                    LastName = "Doe",
                    MiddleName = "Emily",
                    IsEmployed = true,
                    WasEmployedPastYear = true,
                    HasMedicare = false,
                    HasAnotherPlan = true,
                    SocialSecurityNumber = "330-01-0015",
                    NameOfInsuranceCompany = "Chicago Medical Ins Inc.",
                    PolicyNumber = "333423A",
                    EffectiveDate = DateTime.Parse("01/01/2010"),
                    PlanType = "HMO",
                    Address = new Address
                        {
                            Street = "1 Apple Rd",
                            City = "Chicago",
                            State = "IL",
                            Zipcode = "60630"
                        },
                    DateOfBirth = DateTime.Parse("10/01/1965"),
                    Employer = _shopKo,
                    RelationShip = RelationShip.SPOUSE
                };
            _child = new Dependent
                {
                    FirstName = "Molly",
                    LastName = "Doe",
                    MiddleName = "Sally",
                    SocialSecurityNumber = "330-01-0010",
                    IsEmployed = false,
                    WasEmployedPastYear = false,
                    HasMedicare = false,
                    HasAnotherPlan = false,
                    Address = new Address
                        {
                            Street = "1 Apple Rd",
                            City = "Chicago",
                            State = "IL",
                            Zipcode = "60630"
                        },
                    DateOfBirth = DateTime.Parse("10/01/1985"),
                    RelationShip = RelationShip.CHILD
                };
        }