예제 #1
0
 public static Suite ToEntity(this SuiteViewModel viewModel)
 {
     return(new Suite
     {
         PackId = viewModel.PackId,
         PackName = viewModel.PackName,
         ProjectId = viewModel.ProjectId,
         Scenarios = viewModel.Scenarios,
         SubScenarios = viewModel.SubScenarios,
         RunAt = viewModel.RunAt,
         TestGroup = viewModel.TestGroup,
         ScheduleDate = viewModel.ScheduleDate,
         Active = viewModel.Active,
         CreatedBy = viewModel.CreatedBy,
         CreatedDate = viewModel.CreatedDate,
         UpdatedBy = viewModel.UpdatedBy,
         UpdatedDate = viewModel.UpdatedDate,
         No_of_Steps = viewModel.No_of_Steps,
         Type_Of_Pack = viewModel.Type_Of_Pack,
         scenario_subscenario = viewModel.scenario_subscenario
     });
 }