private DbContextMock(IKeyFactoryBuilder keyFactoryBuilder, params object[] args)
 {
     DbContextObject    = Substitute.ForPartsOf <TDbContext>(args);
     _keyFactoryBuilder = keyFactoryBuilder ?? throw new ArgumentNullException(nameof(keyFactoryBuilder));
     Reset();
 }
Example #2
0
 private DbContextMock(IKeyFactoryBuilder keyFactoryBuilder, params object[] args)
     : base(args)
 {
     _keyFactoryBuilder = keyFactoryBuilder ?? throw new ArgumentNullException(nameof(keyFactoryBuilder));
     Reset();
 }