Src/AutoFakeItEasy/AutoFakeItEasyCustomization.cs
/// <summary>
/// Customizes an <see cref="IFixture"/> to enable auto-mocking with FakeItEasy.
/// </summary>
/// <param name="fixture">The fixture upon which to enable auto-mocking.</param>
Customizes an  to enable auto-mocking with FakeItEasy.
Customizes an to enable auto - mocking with FakeItEasy .
public void Customize(IFixture fixture)
        {
            if (fixture == null) throw new ArgumentNullException(nameof(fixture));
            if (this.GenerateDelegates)
            {
                fixture.Customizations.Add(new FakeItEasyRelay(new DelegateSpecification()));
            }
            fixture.Customizations.Add(
                new FakeItEasyBuilder(
                    new MethodInvoker(
                        new FakeItEasyMethodQuery())));
            fixture.ResidueCollectors.Add(this.Relay);
        }
public void Customize ( IFixture fixture ) { if ( fixture == null ) throw new ArgumentNullException ( nameof ( fixture ) ) ; if ( this . GenerateDelegates ) { fixture . Customizations . Add ( new FakeItEasyRelay ( new DelegateSpecification ( ) ) ) ; } fixture . Customizations . Add ( new FakeItEasyBuilder ( new MethodInvoker ( new FakeItEasyMethodQuery ( ) ) ) ) ; fixture . ResidueCollectors . Add ( this . Relay ) ; }
Customizes an  to enable auto-mocking with FakeItEasy.
Customizes an to enable auto - mocking with FakeItEasy .
fixture
IFixture
The fixture upon which to enable auto-mocking.
The fixture upon which to enable auto - mocking .