/// <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 CustomFieldAnswer GetValid(int?counter) { var rtValue = CreateValidEntities.CustomFieldAnswer(counter); rtValue.Order = Repository.OfType <Order>().Queryable.First(); rtValue.CustomField = Repository.OfType <CustomField>().Queryable.First(); return(rtValue); }