예제 #1
0
 public static UseCaseArtifactViewModel FromModel(UseCase useCase, SpecificationItem specificationItem)
 {
     return(new UseCaseArtifactViewModel
     {
         UseCase = UseCaseViewModel.FromModel(useCase),
         SpecificationItem = SpecificationItemViewModel.FromModel(specificationItem)
     });
 }
예제 #2
0
 public static ItemLinkViewModel FromModel(SpecificationItem origin, SpecificationItem target)
 {
     return(new ItemLinkViewModel
     {
         Origin = SpecificationItemViewModel.FromModel(origin),
         Target = SpecificationItemViewModel.FromModel(target)
     });
 }