public static ForumTopicPostWrapper GetSample()
 {
     return(new ForumTopicPostWrapper
     {
         Id = 123,
         CreatedBy = EmployeeWraper.GetSample(),
         Created = ApiDateTime.GetSample(),
         Updated = ApiDateTime.GetSample(),
         Subject = "Sample subject",
         Text = "Post text",
         Attachments = new List <ForumTopicPostAttachmentWrapper> {
             ForumTopicPostAttachmentWrapper.GetSample()
         }
     });
 }
 public static SubtaskWrapper GetSample()
 {
     return(new SubtaskWrapper
     {
         Id = 1233,
         Title = "Sample subtask",
         Description = "Sample description",
         Status = (int)TaskStatus.Open,
         Responsible = EmployeeWraper.GetSample(),
         Created = ApiDateTime.GetSample(),
         CreatedBy = EmployeeWraper.GetSample(),
         Updated = ApiDateTime.GetSample(),
         UpdatedBy = EmployeeWraper.GetSample(),
     });
 }
 public static BlogPostWrapperSummary GetSample()
 {
     return(new BlogPostWrapperSummary
     {
         CreatedBy = EmployeeWraper.GetSample(),
         Created = ApiDateTime.GetSample(),
         Id = Guid.Empty,
         Preview = "Preview post",
         Tags = new List <string> {
             "Tag1", "Tag2"
         },
         Title = "Example post",
         Updated = ApiDateTime.GetSample()
     });
 }
 public static BlogPostWrapperFull GetSample()
 {
     return(new BlogPostWrapperFull
     {
         CreatedBy = EmployeeWraper.GetSample(),
         Created = ApiDateTime.GetSample(),
         Updated = ApiDateTime.GetSample(),
         Id = Guid.Empty,
         Text = "Post text",
         Tags = new List <string> {
             "Tag1", "Tag2"
         },
         Title = "Example post"
     });
 }
Exemple #5
0
 public static TaskWrapper GetSample()
 {
     return(new TaskWrapper(0)
     {
         Created = ApiDateTime.GetSample(),
         CreateBy = EmployeeWraper.GetSample(),
         DeadLine = ApiDateTime.GetSample(),
         IsClosed = false,
         Responsible = EmployeeWraper.GetSample(),
         Category = TaskCategoryBaseWrapper.GetSample(),
         CanEdit = true,
         Title = "Send a commercial offer",
         AlertValue = 0
     });
 }
Exemple #6
0
 public static ProjectWrapperFull GetSample()
 {
     return(new ProjectWrapperFull
     {
         Id = 10,
         Title = "Sample Title",
         Description = "Sample description",
         Status = (int)MilestoneStatus.Open,
         Responsible = EmployeeWraper.GetSample(),
         Created = ApiDateTime.GetSample(),
         CreatedBy = EmployeeWraper.GetSample(),
         Updated = ApiDateTime.GetSample(),
         UpdatedBy = EmployeeWraper.GetSample(),
         ProjectFolder = 13234
     });
 }
 public static MessageWrapper GetSample()
 {
     return(new MessageWrapper
     {
         Id = 10,
         ProjectOwner = SimpleProjectWrapper.GetSample(),
         Title = "Sample Title",
         Text = "Hello, this is sample message",
         Created = ApiDateTime.GetSample(),
         CreatedBy = EmployeeWraper.GetSample(),
         Updated = ApiDateTime.GetSample(),
         UpdatedBy = EmployeeWraper.GetSample(),
         CanEdit = true,
         CommentsCount = 5
     });
 }
Exemple #8
0
 public static ForumTopicWrapper GetSample()
 {
     return(new ForumTopicWrapper()
     {
         Created = ApiDateTime.GetSample(),
         Updated = ApiDateTime.GetSample(),
         Id = 10,
         UpdatedBy = EmployeeWraper.GetSample(),
         Text = "This is sample post",
         Status = TopicStatus.Sticky,
         Tags = new List <string> {
             "Tag1", "Tag2"
         },
         Title = "Sample topic",
         Type = TopicType.Informational
     });
 }
 public new static PersonWrapper GetSample()
 {
     return(new PersonWrapper(0)
     {
         IsPrivate = true,
         IsShared = false,
         IsCompany = false,
         FirstName = "Tadjeddine",
         LastName = "Bachir",
         Company = CompanyWrapper.GetSample(),
         Title = "Programmer",
         About = "",
         Created = ApiDateTime.GetSample(),
         CreateBy = EmployeeWraper.GetSample(),
         ShareType = ShareType.None
     });
 }
Exemple #10
0
 public static OpportunityWrapper GetSample()
 {
     return(new OpportunityWrapper(0)
     {
         CreateBy = EmployeeWraper.GetSample(),
         Created = ApiDateTime.GetSample(),
         Responsible = EmployeeWraper.GetSample(),
         Title = "Hotel catalogue",
         Description = "",
         ExpectedCloseDate = ApiDateTime.GetSample(),
         Contact = ContactBaseWrapper.GetSample(),
         IsPrivate = false,
         SuccessProbability = 65,
         BidType = BidType.FixedBid,
         Stage = DealMilestoneBaseWrapper.GetSample()
     });
 }
 public static new ForumThreadWrapperFull GetSample()
 {
     return(new ForumThreadWrapperFull()
     {
         Created = ApiDateTime.GetSample(),
         Updated = ApiDateTime.GetSample(),
         Description = "Sample thread",
         Id = 10,
         UpdatedBy = EmployeeWraper.GetSample(),
         RecentTopicId = 1234,
         RecentTopicTitle = "Sample topic",
         Title = "The Thread",
         Topics = new List <ForumTopicWrapper> {
             ForumTopicWrapper.GetSample()
         }
     });
 }
Exemple #12
0
 public static TimeWrapper GetSample()
 {
     return(new TimeWrapper
     {
         Id = 10,
         Date = ApiDateTime.GetSample(),
         Hours = 3.5F,
         Note = "Sample note",
         RelatedProject = 123,
         RelatedTask = 13456,
         RelatedTaskTitle = "Sample task",
         CreatedBy = EmployeeWraper.GetSample(),
         Person = EmployeeWraper.GetSample(),
         CanEdit = true,
         PaymentStatus = PaymentStatus.Billed,
         StatusChanged = ApiDateTime.GetSample(),
         CanEditPaymentStatus = true
     });
 }
 /// <summary>
 /// </summary>
 /// <returns></returns>
 public static FolderWrapper GetSample()
 {
     return(new FolderWrapper
     {
         Access = FileShare.ReadWrite,
         Updated = ApiDateTime.GetSample(),
         Created = ApiDateTime.GetSample(),
         CreatedBy = EmployeeWraper.GetSample(),
         Id = new Random().Next(),
         RootFolderType = FolderType.BUNCH,
         SharedByMe = false,
         Title = "Some titile",
         UpdatedBy = EmployeeWraper.GetSample(),
         FilesCount = new Random().Next(),
         FoldersCount = new Random().Next(),
         ParentId = new Random().Next(),
         IsShareable = false
     });
 }
 public static TaskWrapper GetSample()
 {
     return(new TaskWrapper
     {
         Id = 10,
         Title = "Sample Title",
         Description = "Sample description",
         Deadline = ApiDateTime.GetSample(),
         Priority = TaskPriority.High,
         Status = (int)MilestoneStatus.Open,
         Responsible = EmployeeWraper.GetSample(),
         ProjectOwner = SimpleProjectWrapper.GetSample(),
         MilestoneId = 123,
         Created = ApiDateTime.GetSample(),
         CreatedBy = EmployeeWraper.GetSample(),
         Updated = ApiDateTime.GetSample(),
         UpdatedBy = EmployeeWraper.GetSample(),
         StartDate = ApiDateTime.GetSample()
     });
 }
Exemple #15
0
 public static MilestoneWrapper GetSample()
 {
     return(new MilestoneWrapper
     {
         Id = 10,
         ProjectOwner = SimpleProjectWrapper.GetSample(),
         Title = "Sample Title",
         Description = "Sample description",
         Created = ApiDateTime.GetSample(),
         CreatedBy = EmployeeWraper.GetSample(),
         Updated = ApiDateTime.GetSample(),
         UpdatedBy = EmployeeWraper.GetSample(),
         Responsible = EmployeeWraper.GetSample(),
         Status = (int)MilestoneStatus.Open,
         Deadline = ApiDateTime.GetSample(),
         IsKey = false,
         IsNotify = false,
         CanEdit = true,
         ActiveTaskCount = 15,
         ClosedTaskCount = 5
     });
 }
 /// <summary>
 /// </summary>
 /// <returns></returns>
 public static FileWrapper GetSample()
 {
     return(new FileWrapper
     {
         Access = FileShare.ReadWrite,
         Updated = ApiDateTime.GetSample(),
         Created = ApiDateTime.GetSample(),
         CreatedBy = EmployeeWraper.GetSample(),
         Id = new Random().Next(),
         RootFolderType = FolderType.BUNCH,
         Shared = false,
         Title = "Some titile.txt",
         FileExst = ".txt",
         FileType = FileType.Document,
         UpdatedBy = EmployeeWraper.GetSample(),
         ContentLength = 12345.ToString(CultureInfo.InvariantCulture),
         FileStatus = FileStatus.IsNew,
         FolderId = 12334,
         Version = 3,
         VersionGroup = 1,
         ViewUrl = "http://www.teamlab.com/viewfile?fileid=2221"
     });
 }
 public new static EmployeeWraperFull GetSample()
 {
     return(new EmployeeWraperFull
     {
         Avatar = "url to big avatar",
         AvatarSmall = "url to small avatar",
         AvatarMax = "url to max avatar",
         Contacts = new List <Contact> {
             Contact.GetSample()
         },
         Email = "*****@*****.**",
         FirstName = "Mike",
         Id = Guid.Empty,
         IsAdmin = false,
         ListAdminModules = new List <string> {
             "projects", "crm"
         },
         UserName = "******",
         LastName = "Zanyatski",
         Title = "Manager",
         Groups = new List <GroupWrapperSummary> {
             GroupWrapperSummary.GetSample()
         },
         AvatarMedium = "url to medium avatar",
         Birthday = ApiDateTime.GetSample(),
         Department = "Marketing",
         Location = "Palo Alto",
         Notes = "Notes to worker",
         Sex = "male",
         Status = EmployeeStatus.Active,
         WorkFrom = ApiDateTime.GetSample(),
         Terminated = ApiDateTime.GetSample(),
         CultureName = "en-EN",
         IsLDAP = false,
         IsSSO = false
     });
 }
Exemple #18
0
 /// <summary>
 /// </summary>
 /// <returns></returns>
 public static FileWrapper GetSample()
 {
     return new FileWrapper
     {
         Access = FileShare.ReadWrite,
         Updated = ApiDateTime.GetSample(),
         Created = ApiDateTime.GetSample(),
         CreatedBy = EmployeeWraper.GetSample(),
         Id = new Random().Next(),
         RootFolderType = FolderType.BUNCH,
         Shared = false,
         Title = "Some titile.txt",
         FileExst = ".txt",
         FileType = FileType.Document,
         UpdatedBy = EmployeeWraper.GetSample(),
         ContentLength = "12.06 KB", //12345
         PureContentLength = 12345,
         FileStatus = FileStatus.IsNew,
         FolderId = 12334,
         Version = 3,
         VersionGroup = 1,
         ViewUrl = "http://www.onlyoffice.com/viewfile?fileid=2221"
     };
 }