internal ServiceForOracle(ILogger <ServiceForOracle> logger, IDbConnectionFactory factory, IMetadataBuilderFactory builderFactory, IOracleRefCursorWrapperFactory wrapperFactory, IMetadataFactory metadataFactory) { _Logger = logger; _DbFactory = factory ?? throw new ArgumentNullException(nameof(factory)); _MetadataFactory = metadataFactory ?? throw new ArgumentNullException(nameof(metadataFactory)); _Common = _MetadataFactory.CreateCommon(); _BuilderFactory = builderFactory ?? throw new ArgumentNullException(nameof(builderFactory)); _RefCursorWrapperFactory = wrapperFactory ?? throw new ArgumentNullException(nameof(wrapperFactory)); }
internal void Constructor_FourParameters_NullParameter_ThrowsArgumentNull(ILogger <ServiceForOracle> logger, IDbConnectionFactory factory, IMetadataFactory metadataFactory, IMetadataBuilderFactory builderFactory, IOracleRefCursorWrapperFactory wrapperFactory) { Assert.Throws <ArgumentNullException>("factory", () => new ServiceForOracle(logger, null, builderFactory, wrapperFactory, metadataFactory)); Assert.Throws <ArgumentNullException>("builderFactory", () => new ServiceForOracle(logger, factory, null, wrapperFactory, metadataFactory)); Assert.Throws <ArgumentNullException>("metadataFactory", () => new ServiceForOracle(logger, factory, builderFactory, wrapperFactory, null)); Assert.Throws <ArgumentNullException>("wrapperFactory", () => new ServiceForOracle(logger, factory, builderFactory, null, metadataFactory)); }
internal void Constructor_FiveParameters(ILogger <ServiceForOracle> logger, IDbConnectionFactory factory, IMetadataFactory metadataFactory, IMetadataBuilderFactory builderFactory, IOracleRefCursorWrapperFactory wrapperFactory) { var service = new ServiceForOracle(logger, factory, builderFactory, wrapperFactory, metadataFactory); }