public void DirtyAddress_CleanShouldBeCalled()
        {
            _laundryMock.Launder(new Address()).ReturnsForAnyArgs(x => x.Arg <CachedAddress>());
            var testAddr = new Address()
            {
                StreetName   = "Jens Baggesens Vej",
                StreetNumber = "44",
                ZipCode      = 8210,
                Town         = "Aarhus V",
            };

            _uut.Launder(testAddr);

            _laundryMock.ReceivedWithAnyArgs().Launder(new Address());
        }
        public void SaveHomeAddress_WithNonCachedAddress_ShouldCallActualLaunderer()
        {
            var empl = new Employee()
            {
                LOSOrgId            = 10,
                AnsatForhold        = "1",
                EkstraCiffer        = 1,
                Leder               = true,
                Stillingsbetegnelse = "Udvikler",
                AnsaettelsesDato    = new DateTime(2015, 4, 28),
                Adresse             = "Jens Baggesens Vej 44",
                PostNr              = 8210,
                By = "Aarhus V"
            };

            _actualLaundererMock.Launder(new CachedAddress()).ReturnsForAnyArgs(new CachedAddress
            {
                IsDirty      = false,
                StreetName   = "Jens Baggesens Vej",
                StreetNumber = "44",
                ZipCode      = 8210,
                Town         = "Aarhus V",
                DirtyString  = "Jens Baggesens Vej 44, 8210 Aarhus V",
            });

            _uut = new UpdateService(_emplRepoMock, _orgUnitRepoMock, _personRepoMock, _cachedAddressRepoMock,
                                     _personalAddressRepoMock, _actualLaundererMock, _coordinates, _dataProvider, _mailServiceMock, NSubstitute.Substitute.For <IAddressHistoryService>(), _reportRepo, _driveService, _subservice, _subRepo);


            _uut.UpdateHomeAddress(empl, 1);

            _actualLaundererMock.ReceivedWithAnyArgs().Launder(new Address());
        }