private void CheckTranslation(VmAddressSimple source, ServiceLocationChannelAddress target) { target.Should().NotBe(Guid.Empty); target.Address.Should().NotBeNull(); target.Character.Should().NotBeNull(); target.Character.Code.Should().Be(source.AddressCharacter.ToString()); }
private void CheckTranslation(VmAddressSimple source, Address target, AddressTypeEnum addressType) { target.Should().NotBe(Guid.Empty); switch (addressType) { case AddressTypeEnum.Street: target.AddressStreets.First().StreetNames.Count.Should().Be(1); // target.AddressStreets.First().StreetNames.Select(x => x.Name).FirstOrDefault().Should().Be(source.Street); break; case AddressTypeEnum.PostOfficeBox: target.AddressPostOfficeBoxes.First().PostOfficeBoxNames.Count.Should().Be(1); target.AddressPostOfficeBoxes.First().PostOfficeBoxNames.Select(x => x.Name).FirstOrDefault().Should().Be(source.PoBox.Values.First()); break; case AddressTypeEnum.Foreign: target.AddressForeigns.First().ForeignTextNames.Count.Should().Be(1); // target.AddressForeigns.First().ForeignTextNames.Select(x => x.Name).FirstOrDefault().Should().Be(source.Street); break; } target.Country.Should().NotBeNull(); }
private void CheckTranslation(VmAddressSimple source, PostOfficeBoxName target) { target.Should().NotBe(Guid.Empty); target.Name.Should().Be(source.PoBox.Values.First()); target.LocalizationId.Should().NotBe(Guid.Empty); }
private void CheckTranslation(VmAddressSimple source, StreetName target) { target.Should().NotBe(Guid.Empty); // target.Name.Should().Be(source.Street); target.LocalizationId.Should().NotBe(Guid.Empty); }
public VmAddressSimple SetMissingValues(VmAddressSimple hour, AddressCharacterEnum character) { hour.AddressCharacter = character; return(hour); }