Esempio n. 1
0
        public AttachmentTestContext() : base()
        {
            UserInterface userInterface = new UserInterface();

            users.Add(userInterface.Create("Sarah1 Swank1", "*****@*****.**"));
            users.Add(userInterface.Create("Sarah2 Swank2", "*****@*****.**"));
            users.Add(userInterface.Create("Sarah3 Swank3", "*****@*****.**"));
            users.Add(userInterface.Create("Sarah4 Swank4", "*****@*****.**"));
            users.Add(userInterface.Create("Sarah5 Swank5", "*****@*****.**"));
            users.Add(userInterface.Create("Sarah6 Swank6", "*****@*****.**"));

            PageInterface pageInterface = new PageInterface();

            pages.Add(pageInterface.Create("New Attachment", users[0]));
        }
Esempio n. 2
0
        public void CreatePageTest()
        {
            string pageName = "New Page";
            var    page     = pageInterface.Create(pageName, pageTestContext.users[0]);

            var fetched = pageInterface.GetByName(pageName);

            Assert.NotNull(fetched);

            Assert.Equal(page.Id, fetched.Id);

            Assert.Equal(pageName, fetched.Name);
            Assert.Equal(fetched.Acl.ownerId, pageTestContext.users[0].Id);
        }
Esempio n. 3
0
 public Page Create(string name, User subject)
 {
     return(pageInterface.Create(name, subject));
 }