public CustomerElementBuilder(IDateStringFormatter dateStringFormatter,
                               IIdElementBuilder idXElementBuilder,
                               IContactElementBuilder contactXElementBuilder)
 {
     DateStringFormatter    = dateStringFormatter;
     IdXElementBuilder      = idXElementBuilder;
     ContactXElementBuilder = contactXElementBuilder;
 }
Beispiel #2
0
 public ProviderElementBuilder(
     IIdElementBuilder idXElementBuilder,
     INameElementBuilder nameXElementBuilder,
     IContactElementBuilder contactXElementBuilder,
     IEmailElementBuilder emailXElementBuilder,
     IPhoneElementBuilder phoneXElementBuilder)
 {
     ContactXElementBuilder = contactXElementBuilder;
     EmailXElementBuilder   = emailXElementBuilder;
     IdXElementBuilder      = idXElementBuilder;
     NameXElementBuilder    = nameXElementBuilder;
     PhoneXElementBuilder   = phoneXElementBuilder;
 }
        protected virtual List <XElement> GetIdElements(List <Id> adfIds, IIdElementBuilder idXElementBuilder)
        {
            var adfIdElements = new List <XElement>();

            if (adfIds == null || !adfIds.Any())
            {
                return(adfIdElements);
            }

            for (var i = 0; i < adfIds.Count; i++)
            {
                adfIdElements.Add(idXElementBuilder.BuildIdElement(adfIds[i], i + 1));
            }

            return(adfIdElements);
        }
Beispiel #4
0
 public VehicleElementBuilder(IPriceElementBuilder priceXElementBuilder, IIdElementBuilder idXElementBuilder)
 {
     PriceXElementBuilder = priceXElementBuilder;
     IdXElementBuilder    = idXElementBuilder;
 }
Beispiel #5
0
 public VendorElementBuilder(IIdElementBuilder idXElementBuilder, IContactElementBuilder contactXElementBuilder)
 {
     IdXElementBuilder      = idXElementBuilder;
     ContactXElementBuilder = contactXElementBuilder;
 }
 public ProspectElementBuilder(IDateStringFormatter requestDateStringFormatter, IIdElementBuilder idXElementBuilder)
 {
     RequestDateStringFormatter = requestDateStringFormatter;
     IdXElementBuilder          = idXElementBuilder;
 }