Exemplo n.º 1
0
 public CompatibleObject CompatibleMethod(CompatibleObject compatibleInput)
 {
     var incompatibleInput = Map(compatibleInput);
     var incompatibleOutput = _component.IncompatibleMethod(incompatibleInput);
     var compatibleOutput = Map(incompatibleOutput);
     return compatibleOutput;
 }
Exemplo n.º 2
0
        public CompatibleObject CompatibleMethod(CompatibleObject compatibleInput)
        {
            var incompatibleInput  = Map(compatibleInput);
            var incompatibleOutput = _component.IncompatibleMethod(incompatibleInput);
            var compatibleOutput   = Map(incompatibleOutput);

            return(compatibleOutput);
        }
Exemplo n.º 3
0
 private static Adaptee.IncompatibleObject Map(CompatibleObject @object)
 {
     return new Adaptee.IncompatibleObject
     {
         Year = @object.DateTime.Year,
         Month = @object.DateTime.Month,
         Day = @object.DateTime.Day
     };
 }
Exemplo n.º 4
0
 private static Adaptee.IncompatibleObject Map(CompatibleObject @object)
 {
     return(new Adaptee.IncompatibleObject
     {
         Year = @object.DateTime.Year,
         Month = @object.DateTime.Month,
         Day = @object.DateTime.Day
     });
 }