public void Then_Maps_All_Properties( EpaoDetails source, List <EpaoDeliveryArea> epoaDeliveryAreas, List <DeliveryArea> deliveryAreas, Func <IReadOnlyList <EpaoDeliveryArea>, IReadOnlyList <DeliveryArea>, string> buildLocations) { var viewModel = new EpaoDetailsViewModel(source, epoaDeliveryAreas, deliveryAreas, buildLocations); viewModel.Should().BeEquivalentTo(source, config => config.ExcludingMissingMembers()); }
public EpaoDetailsViewModel( EpaoDetails epao, IReadOnlyList <EpaoDeliveryArea> epaoDeliveryAreas, IReadOnlyList <DeliveryArea> deliveryAreas, Func <IReadOnlyList <EpaoDeliveryArea>, IReadOnlyList <DeliveryArea>, string> buildLocations) : base(epaoDeliveryAreas, deliveryAreas, buildLocations) { EpaoId = epao.EpaoId; Name = epao.Name; PrimaryContactName = epao.PrimaryContactName; ContactDetails = epao.ContactDetails; }