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; }
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 )); }
private static void AssertEqualNamedEntities(NamedEntityDTO expected, NamedEntityDTO actual) { Assert.Equal(expected.Id, actual.Id); Assert.Equal(expected.Name, actual.Name); }