public void TestTranslationModel() { var translation = new Translation { Id = 1, Label = "label", }; var dto = TranslationDto.Create(translation); Assert.AreEqual(translation.Id, dto.Id); Assert.AreEqual(translation.Label, dto.Label); }
/// <summary> /// Create a new Translation object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="translationId">Initial value of the TranslationId property.</param> /// <param name="label">Initial value of the Label property.</param> /// <param name="helpText">Initial value of the HelpText property.</param> public static Translation CreateTranslation(global::System.Int32 id, global::System.String translationId, global::System.String label, global::System.String helpText) { Translation translation = new Translation(); translation.Id = id; translation.TranslationId = translationId; translation.Label = label; translation.HelpText = helpText; return translation; }
/// <summary> /// Deprecated Method for adding a new object to the Translation EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTranslation(Translation translation) { base.AddObject("Translation", translation); }