public EnumPropertySerializerDecorator(IEnumSerializer enumSerializer, IPropertySerializer propertySerializer) { ArgumentUtility.CheckNotNull("enumSerializer", enumSerializer); ArgumentUtility.CheckNotNull("propertySerializer", propertySerializer); _enumSerializer = enumSerializer; _propertySerializer = propertySerializer; }
public virtual ITableSerializer CreateTableSerializer(IEnumSerializer enumSerializer) { ArgumentUtility.CheckNotNull("enumSerializer", enumSerializer); var propertySerializer = CreatePropertySerializer(); var decoratedPropertySerializer = new EnumPropertySerializerDecorator(enumSerializer, propertySerializer); return(new TableSerializer(decoratedPropertySerializer)); }
public override IStorageProviderSerializer CreateStorageProviderSerializer(IEnumSerializer enumSerializer) { return(_storageProviderSerializer ?? base.CreateStorageProviderSerializer(enumSerializer)); }
public TestableSqlStorageObjectFactory(IStorageProviderSerializer storageProviderSerializer, IEnumSerializer enumSerializer) { _storageProviderSerializer = storageProviderSerializer; _enumSerializer = enumSerializer; }
public IStorageProviderSerializer CreateStorageProviderSerializer(IEnumSerializer enumSerializer) { throw new NotImplementedException(); }
public ExtensibleEnumSerializerDecorator(IEnumSerializer enumSerializer) { ArgumentUtility.CheckNotNull("enumSerializer", enumSerializer); _enumSerializer = enumSerializer; }
public virtual IClassSerializer CreateClassSerializer(IEnumSerializer enumSerializer) { ArgumentUtility.CheckNotNull("enumSerializer", enumSerializer); return(new ClassSerializer(CreateTableSerializer(enumSerializer))); }
public virtual IStorageProviderSerializer CreateStorageProviderSerializer(IEnumSerializer enumSerializer) { ArgumentUtility.CheckNotNull("enumSerializer", enumSerializer); return(new StorageProviderSerializer(CreateClassSerializer(enumSerializer))); }