Created
March 7, 2018 15:22
-
-
Save mattuu/11b0c23e0d8a24bb767d628726ea765f to your computer and use it in GitHub Desktop.
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
public class ApiControllerCustomization : ICustomization | |
{ | |
public void Customize(IFixture fixture) | |
{ | |
fixture.Register<ICompositeMetadataDetailsProvider>(() => new CustomCompositeMetadataDetailsProvider()); | |
fixture.Inject(new ViewDataDictionary(fixture.Create<DefaultModelMetadataProvider>(), fixture.Create<ModelStateDictionary>())); | |
} | |
private class CustomCompositeMetadataDetailsProvider : ICompositeMetadataDetailsProvider | |
{ | |
public void CreateBindingMetadata(BindingMetadataProviderContext context) | |
{ | |
throw new System.NotImplementedException(); | |
} | |
public void CreateDisplayMetadata(DisplayMetadataProviderContext context) | |
{ | |
throw new System.NotImplementedException(); | |
} | |
public void CreateValidationMetadata(ValidationMetadataProviderContext context) | |
{ | |
throw new System.NotImplementedException(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment