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])); }
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); }
public Page Create(string name, User subject) { return(pageInterface.Create(name, subject)); }