/// <summary>
 /// Initializes a new instance of the <see cref="FluentPropertyApi{TTargetObject,TTargetType}"/> class.
 /// </summary>
 /// <param name="affectedProperties">
 /// The affected properties.
 /// </param>
 /// <param name="callback">
 /// The callback.
 /// </param>
 /// <param name="setupManager">
 /// The object filler setup manager
 /// </param>
 internal FluentPropertyApi(IEnumerable <PropertyInfo> affectedProperties, FluentFillerApi <TTargetObject> callback, SetupManager setupManager)
 {
     this.affectedProperties = affectedProperties;
     this.callback           = callback;
     this.setupManager       = setupManager;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Filler{T}"/> class.
 /// </summary>
 public Filler()
 {
     this.setupManager = new SetupManager();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FluentFillerApi{TTargetObject}"/> class.
 /// </summary>
 /// <param name="setupManager">
 /// The object filler setup manager.
 /// </param>
 internal FluentFillerApi(SetupManager setupManager)
 {
     this.setupManager = setupManager;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FluentTypeApi{TTargetObject,TTargetType}"/> class.
 /// </summary>
 /// <param name="callback">
 /// The callback function
 /// </param>
 /// <param name="setupManager">
 /// The object filler setup manager.
 /// </param>
 internal FluentTypeApi(FluentFillerApi <TTargetObject> callback, SetupManager setupManager)
 {
     this.callback     = callback;
     this.setupManager = setupManager;
 }