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