Example #1
0
 public SystemRelationDTO(
     int id,
     Guid uuid,
     NamedEntityWithEnabledStatusDTO fromUsage,
     NamedEntityWithEnabledStatusDTO toUsage,
     NamedEntityDTO @interface,
     NamedEntityDTO contract,
     NamedEntityDTO frequencyType,
     string description,
     string reference)
 {
     Id            = id;
     Uuid          = uuid;
     FromUsage     = fromUsage;
     ToUsage       = toUsage;
     Interface     = @interface;
     Contract      = contract;
     FrequencyType = frequencyType;
     Description   = description;
     Reference     = reference;
 }
Example #2
0
 private SystemRelationDTO PrepareEditedRelation(SystemRelationDTO created, NamedEntityWithEnabledStatusDTO usage, NamedEntityDTO contract, NamedEntityDTO frequency, NamedEntityDTO interfaceType)
 {
     return(new SystemRelationDTO(
                created.Id,
                created.Uuid,
                created.FromUsage,
                usage,
                interfaceType,
                contract,     // contract
                frequency,    // frquencytype
                A <string>(), // description
                A <string>()  // reference
                ));
 }
Example #3
0
 private static void AssertEqualNamedEntities(NamedEntityDTO expected, NamedEntityDTO actual)
 {
     Assert.Equal(expected.Id, actual.Id);
     Assert.Equal(expected.Name, actual.Name);
 }