Beispiel #1
0
        public ContractViewModelMock Default(ContractPart from, ContractPart to)
        {
            Value.From     = GetPart(from);
            Value.To       = GetPart(to);
            Value.Finished = false;

            return(this);
        }
Beispiel #2
0
 private ContractViewModel.Part GetPart(ContractPart part)
 {
     return(new ContractViewModel.Part()
     {
         Id = part.Id,
         Name = part.Name,
         Address = part.Address,
         Phone = part.Phone
     });
 }
Beispiel #3
0
 public static ContractViewModel Get(ContractPart from, ContractPart to)
 {
     return(Create(Fake.GetKey()).Default(from, to).Build());
 }