Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.