public ShipmentMock(IAddress origin, IAddress destination, LineItemCollection items) { ShipmentNumber = 1; ShipmentStatus = new ShipmentStatusMock(); this.ShippedDate = DateTime.Now; this.FromOrganization = origin.Organization; this.FromName = origin.Name; this.FromAddress1 = origin.Address1; this.FromAddress2 = origin.Address2; this.FromLocality = origin.Locality; this.FromRegion = origin.Region; this.FromPostalCode = origin.PostalCode; this.FromCountryCode = origin.CountryCode; this.FromIsCommercial = origin.IsCommercial; this.ToOrganization = destination.Organization; this.ToName = destination.Name; this.ToAddress1 = destination.Address1; this.ToAddress2 = destination.Address2; this.ToLocality = destination.Locality; this.ToRegion = destination.Region; this.ToPostalCode = destination.PostalCode; this.ToCountryCode = destination.CountryCode; this.ToIsCommercial = destination.IsCommercial; this.Phone = destination.Phone; this.Email = destination.Email; this.Items = items; }
public ShipmentMock(IAddress origin, IAddress destination, LineItemCollection items) { ShipmentNumber = 1; ShipmentStatus = new ShipmentStatusMock(); this.ShippedDate = DateTime.Now; this.FromOrganization = origin.Organization; this.FromName = origin.Name; this.FromAddress1 = origin.Address1; this.FromAddress2 = origin.Address2; this.FromLocality = origin.Locality; this.FromRegion = origin.Region; this.FromPostalCode = origin.PostalCode; this.FromCountryCode = origin.CountryCode; this.FromIsCommercial = origin.IsCommercial; this.ToOrganization = destination.Organization; this.ToName = destination.Name; this.ToAddress1 = destination.Address1; this.ToAddress2 = destination.Address2; this.ToLocality = destination.Locality; this.ToRegion = destination.Region; this.ToPostalCode = destination.PostalCode; this.ToCountryCode = destination.CountryCode; this.ToIsCommercial = destination.IsCommercial; this.Phone = destination.Phone; this.Email = destination.Email; this.Items = items; }