Created
June 9, 2016 17:05
-
-
Save thomaslevesque/2eb64c5fb6e7a012443f8b488b0c67a7 to your computer and use it in GitHub Desktop.
Adapter to ease the migration from FakeItEasy 1.x to 2.0.0, to avoid modifying existing fake configurators.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using FakeItEasy; | |
using FakeItEasy.Creation; | |
namespace TestUtilies | |
{ | |
public abstract class FakeConfigurator<T> : FakeOptionsBuilder<T> | |
{ | |
protected override void BuildOptions(IFakeOptions<T> options) | |
{ | |
options.ConfigureFake(ConfigureFake); | |
} | |
public abstract void ConfigureFake(T fakeObject); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment