@@ -192,12 +192,6 @@ public ReverseTopicMappingService(ITopicRepository topicRepository) {
192192 \-----------------------------------------------------------------------------------------------------------------------*/
193193 if ( source is null ) return target ;
194194
195- /*------------------------------------------------------------------------------------------------------------------------
196- | Validate input
197- \-----------------------------------------------------------------------------------------------------------------------*/
198- Contract . Requires ( target , nameof ( target ) ) ;
199- Contract . Assume ( target . ContentType , nameof ( target . ContentType ) ) ;
200-
201195 /*------------------------------------------------------------------------------------------------------------------------
202196 | Validate model
203197 \-----------------------------------------------------------------------------------------------------------------------*/
@@ -244,13 +238,6 @@ private async Task SetPropertyAsync(
244238 string ? attributePrefix = null
245239 ) {
246240
247- /*------------------------------------------------------------------------------------------------------------------------
248- | Validate parameters
249- \-----------------------------------------------------------------------------------------------------------------------*/
250- Contract . Requires ( source , nameof ( source ) ) ;
251- Contract . Requires ( target , nameof ( target ) ) ;
252- Contract . Requires ( property , nameof ( property ) ) ;
253-
254241 /*------------------------------------------------------------------------------------------------------------------------
255242 | Establish per-property variables
256243 \-----------------------------------------------------------------------------------------------------------------------*/
@@ -349,15 +336,7 @@ private static void SetScalarValue(
349336 object source ,
350337 Topic target ,
351338 PropertyConfiguration configuration
352- )
353- {
354-
355- /*------------------------------------------------------------------------------------------------------------------------
356- | Validate parameters
357- \-----------------------------------------------------------------------------------------------------------------------*/
358- Contract . Requires ( source , nameof ( source ) ) ;
359- Contract . Requires ( target , nameof ( target ) ) ;
360- Contract . Requires ( configuration , nameof ( configuration ) ) ;
339+ ) {
361340
362341 /*------------------------------------------------------------------------------------------------------------------------
363342 | Attempt to retrieve value from the binding model property
@@ -408,15 +387,7 @@ private void SetRelationships(
408387 object source ,
409388 Topic target ,
410389 PropertyConfiguration configuration
411- )
412- {
413-
414- /*------------------------------------------------------------------------------------------------------------------------
415- | Validate parameters
416- \-----------------------------------------------------------------------------------------------------------------------*/
417- Contract . Requires ( source , nameof ( source ) ) ;
418- Contract . Requires ( target , nameof ( target ) ) ;
419- Contract . Requires ( configuration , nameof ( configuration ) ) ;
390+ ) {
420391
421392 /*------------------------------------------------------------------------------------------------------------------------
422393 | Retrieve source list
@@ -468,13 +439,6 @@ private async Task SetNestedTopicsAsync(
468439 PropertyConfiguration configuration
469440 ) {
470441
471- /*------------------------------------------------------------------------------------------------------------------------
472- | Validate parameters
473- \-----------------------------------------------------------------------------------------------------------------------*/
474- Contract . Requires ( source , nameof ( source ) ) ;
475- Contract . Requires ( target , nameof ( target ) ) ;
476- Contract . Requires ( configuration , nameof ( configuration ) ) ;
477-
478442 /*------------------------------------------------------------------------------------------------------------------------
479443 | Retrieve source list
480444 \-----------------------------------------------------------------------------------------------------------------------*/
@@ -516,13 +480,6 @@ private void SetReference(
516480 PropertyConfiguration configuration
517481 ) {
518482
519- /*------------------------------------------------------------------------------------------------------------------------
520- | Validate parameters
521- \-----------------------------------------------------------------------------------------------------------------------*/
522- Contract . Requires ( source , nameof ( source ) ) ;
523- Contract . Requires ( target , nameof ( target ) ) ;
524- Contract . Requires ( configuration , nameof ( configuration ) ) ;
525-
526483 /*------------------------------------------------------------------------------------------------------------------------
527484 | Retrieve source value
528485 \-----------------------------------------------------------------------------------------------------------------------*/
@@ -578,12 +535,6 @@ private async Task PopulateTargetCollectionAsync(
578535 KeyedTopicCollection targetList
579536 ) {
580537
581- /*------------------------------------------------------------------------------------------------------------------------
582- | Validate parameters
583- \-----------------------------------------------------------------------------------------------------------------------*/
584- Contract . Requires ( sourceList , nameof ( sourceList ) ) ;
585- Contract . Requires ( targetList , nameof ( targetList ) ) ;
586-
587538 /*------------------------------------------------------------------------------------------------------------------------
588539 | Queue up mapping tasks
589540 \-----------------------------------------------------------------------------------------------------------------------*/
0 commit comments