/// <summary> /// Gets the valid entity of type T /// </summary> /// <param name="counter">The counter.</param> /// <returns>A valid entity of type T</returns> protected override HistoryReceivedLineItem GetValid(int?counter) { var rtValue = CreateValidEntities.HistoryReceivedLineItem(counter); rtValue.LineItem = LineItemRepository.Queryable.First(); rtValue.User = UserRepository.Queryable.First(); return(rtValue); }