Exemple #1
0
        public virtual IItemData EvaluateNewSerializedItem(IItemData newItemData)
        {
            Assert.ArgumentNotNull(newItemData, "newItem");

            _logger.DeserializedNewItem(newItemData);

            _sourceDataStore.Save(newItemData);

            _logger.Evaluated(newItemData);

            return(newItemData);
        }
        public virtual IItemData EvaluateNewSerializedItem(IItemData newItemData)
        {
            Assert.ArgumentNotNull(newItemData, "newItem");

            _logger.DeserializedNewItem(newItemData);

            var result = _parentConfiguration.Resolve <IPredicate>().Includes(newItemData);

            // TODO: In reality, result should never come back null here. With the current tests it does however, and it's
            // ^&*"$*£"&(* to change them
            _sourceDataStore.Save(newItemData, result?.FieldValueManipulator);

            _logger.Evaluated(newItemData);

            return(newItemData);
        }