From 3e5bbe3ff4876510b102973dcbd667b294833bfb Mon Sep 17 00:00:00 2001 From: Brian Richardson Date: Tue, 12 Sep 2017 14:06:22 -0600 Subject: [PATCH] Filler methods should be virtual --- Tynamix.ObjectFiller/Filler.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Tynamix.ObjectFiller/Filler.cs b/Tynamix.ObjectFiller/Filler.cs index eefe2ee..78ca209 100644 --- a/Tynamix.ObjectFiller/Filler.cs +++ b/Tynamix.ObjectFiller/Filler.cs @@ -61,7 +61,7 @@ public Filler() /// /// A created and filled instance of dictionaryType /// - public T Create() + public virtual T Create() { T objectToFill; var hashStack = new HashStack(); @@ -89,7 +89,7 @@ public T Create() /// /// with created and filled instances of dictionaryType /// - public IEnumerable Create(int count) + public virtual IEnumerable Create(int count) { IList items = new List(); for (int n = 0; n < count; n++) @@ -109,7 +109,7 @@ public IEnumerable Create(int count) /// /// The filled instance of dictionaryType . /// - public T Fill(T instanceToFill) + public virtual T Fill(T instanceToFill) { this.FillInternal(instanceToFill); @@ -120,7 +120,7 @@ public T Fill(T instanceToFill) /// Call this to start the setup for the /// /// Fluent API setup - public FluentFillerApi Setup() + public virtual FluentFillerApi Setup() { return this.Setup(false); } @@ -130,7 +130,7 @@ public FluentFillerApi Setup() /// /// True if just properties shall get filled which configured in filler setup. /// Fluent API setup - public FluentFillerApi Setup(bool explicitSetup) + public virtual FluentFillerApi Setup(bool explicitSetup) { return this.Setup(null, explicitSetup); } @@ -145,7 +145,7 @@ public FluentFillerApi Setup(bool explicitSetup) /// /// Fluent API Setup /// - public FluentFillerApi Setup(FillerSetup fillerSetupToUse) + public virtual FluentFillerApi Setup(FillerSetup fillerSetupToUse) { return this.Setup(fillerSetupToUse, false); } @@ -161,7 +161,7 @@ public FluentFillerApi Setup(FillerSetup fillerSetupToUse) /// /// Fluent API Setup /// - public FluentFillerApi Setup(FillerSetup fillerSetupToUse, bool explicitSetup) + public virtual FluentFillerApi Setup(FillerSetup fillerSetupToUse, bool explicitSetup) { if (fillerSetupToUse != null) {