Ejemplo n.º 1
0
 public static OpportunityWrapper GetSample()
 {
     return(new OpportunityWrapper(0)
     {
         CreateBy = EmployeeWraper.GetSample(),
         Created = (ApiDateTime)DateTime.UtcNow,
         Responsible = EmployeeWraper.GetSample(),
         Title = "Каталог отелей",
         Description = "",
         ExpectedCloseDate = (ApiDateTime)DateTime.UtcNow.AddDays(10),
         Contact = ContactBaseWrapper.GetSample(),
         IsPrivate = false,
         SuccessProbability = 65,
         BidType = BidType.FixedBid,
         Stage = DealMilestoneWrapper.GetSample()
     });
 }
Ejemplo n.º 2
0
        private DealMilestoneWrapper ToDealMilestoneWrapper(DealMilestone dealMilestone)
        {
            var result = new DealMilestoneWrapper(dealMilestone)
                             {
                                 RelativeItemsCount = DaoFactory.GetDealMilestoneDao().GetRelativeItemsCount(dealMilestone.ID)
                             };

            return result;
        }