private FetchBudgetBucket ( [ array, int index, [ bucketRepository ) : |
||
array | [ | |
index | int | |
bucketRepository | [ | |
return |
internal BudgetBucket FetchBudgetBucket([NotNull] string[] array, int index, [NotNull] IBudgetBucketRepository bucketRepository)
{
if (array == null)
{
throw new ArgumentNullException(nameof(array));
}
if (bucketRepository == null)
{
throw new ArgumentNullException(nameof(bucketRepository));
}
var stringType = FetchString(array, index);
if (string.IsNullOrWhiteSpace(stringType))
{
return null;
}
stringType = stringType.ToUpperInvariant();
return bucketRepository.GetByCode(stringType);
}