示例#1
0
        public void PersonWithout_WorkDistanceOverrideSet_ActualWorkAddress_ShouldCall_GetRoute()
        {
            var testPerson = new Person
            {
                PersonalAddresses = new List <PersonalAddress>
                {
                    new PersonalAddress
                    {
                        Type = PersonalAddressType.Home
                    },
                },
                Employments = new List <Employment>
                {
                    new Employment
                    {
                        OrgUnit = new OrgUnit()
                        {
                            Address = new WorkAddress()
                            {
                                StreetName   = "Katrinebjergvej",
                                StreetNumber = "93B",
                                ZipCode      = 8200,
                                Town         = "Aarhus N"
                            }
                        }
                    }
                }
            };

            _uut.AddHomeWorkDistanceToEmployments(testPerson);
            _routeMock.ReceivedWithAnyArgs().GetRoute(DriveReportTransportType.Car, new List <Address>());
        }