Created
June 9, 2016 17:05
Star
You must be signed in to star a gist
Adapter to ease the migration from FakeItEasy 1.x to 2.0.0, to avoid modifying existing fake configurators.
This file contains 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