public TestInfoConfigViewModel(ConfigProjectTest configProjectTest, int testInfoId) { Id = 0; TestInfoId = testInfoId; ConfigProjectTestId = configProjectTest.Id; Value = configProjectTest.DefaultValue; }
public ProjectTestConfigViewModel Convert(int id, int projectId, ConfigProjectTest configProjectTest) { Id = id; ProjectId = projectId; ConfigProjectTestId = configProjectTest.Id; Value = configProjectTest.DefaultValue; return(this); }
public ConfigProjectTestViewModel(ConfigProjectTest configProjectTest) { Id = configProjectTest.Id; Name = configProjectTest.Name; Description = configProjectTest.Description; Type = configProjectTest.Type; DefaultValue = configProjectTest.DefaultValue; IsActive = configProjectTest.IsActive; }