public TConvention With <TConvention>() where TConvention : IAssemblyScannerConvention, new()
        {
            var convention = new TConvention();

            conventions.Add(convention);

            return(convention);
        }
 public void UseMethodSelectionConvention <TConvention>() where TConvention : IMethodSelectionConvenstion, new()
 {
     Convention = new TConvention();
 }
Exemplo n.º 3
0
 public FakeEntityTypeConfiguration(TConvention convention, bool isKeyless)
 {
     _convention = convention ?? throw new ArgumentNullException(nameof(convention));
     _isKeyless  = isKeyless;
 }