public PoolItemTests()
 {
     _key = new TestKey
     {
         Identifier = 846853,
     };
     _settings = new PoolItemSettings<TestKey>
     {
         Key = _key,
         MarkObtainedObjectAsNotAvailable = true,
         MaxObjectsCount = 100,
         ThrowIfCantCreateNewBecauseOfReachedLimit = false,
     };
 }
        private void CreatePoolItemWithoutDependencyAndCheck(PoolItemSettings<TestKey> settings,
                                                             IStorage<TestResource> availableObjectsStorage,
                                                             IPoolObjectActions<TestResource> objectActions,
                                                             IObjectUtilizer<TestKey, TestResource> objectUtilizer,
                                                             string paramNameInException)
        {
            TestDelegate createPoolItem = () => new PoolItem<TestKey, TestResource>(settings,
                                                                                    availableObjectsStorage,
                                                                                    objectActions,
                                                                                    objectUtilizer);

            var noDependencyException = Assert.Throws<ArgumentNullException>(createPoolItem);

            Assert.That(noDependencyException.ParamName, Is.EqualTo(paramNameInException));
        }