public TopicsControllerDocumentsTest() { _tester = new ControllerTester <TopicsController>(); HtmlContentModel = new HtmlContentModel { HtmlContent = "Hello" }; }
public TopicsControllerUsersTest() { _tester = new ControllerTester <TopicsController>(); Student1 = new User { Id = 7, UId = "test-auth:student7", Email = "*****@*****.**", Role = "Student" }; Student2 = new User { Id = 8, UId = "test-auth:student8", Email = "*****@*****.**", Role = "Student" }; Supervisor1 = new User { Id = 9, UId = "test-auth:supervisor9", Email = "*****@*****.**", Role = "Supervisor" }; Supervisor2 = new User { Id = 10, UId = "test-auth:supervisor10", Email = "*****@*****.**", Role = "Supervisor" }; Reviewer1 = new User { Id = 11, UId = "test-auth:reviewer11", Email = "*****@*****.**", Role = "Reviewer" }; Reviewer2 = new User { Id = 12, UId = "test-auth:reviewer12", Email = "*****@*****.**", Role = "Reviewer" }; UsersFormModelForStudent = new UsersFormModel { Users = new[] { Student1.Email, Student2.Email } }; UsersFormModelForSupervisor = new UsersFormModel { Users = new[] { Supervisor1.Email, Supervisor2.Email } }; UsersFormModelForReviewer = new UsersFormModel { Users = new[] { Reviewer1.Email, Reviewer2.Email } }; }
public NotificationsControllerTest() { _tester = new ControllerTester <NotificationsController>(); ExpectedListOfNotifications = new List <NotificationResult>() { new NotificationResult(_tester.UnreadNotification), // unread new NotificationResult(_tester.ReadNotification) // read (as we are expecting all notifications) }; }
public TopicsControllerAssociatedTopicsTest() { _tester = new ControllerTester <TopicsController>(); AssociatedTopic = new AssociatedTopic { ParentTopicId = _tester.TopicOne.Id, ChildTopicId = _tester.TopicTwo.Id }; }
public UserControllerTest() { _tester = new ControllerTester <UserController>(); UserFormModel = new UserFormModel { FirstName = "First Name", LastName = "Last Name" }; }
public UserControllerStudentsTest() { _tester = new ControllerTester <UserController>(); StudentFormModel = new StudentFormModel { Discipline = "ABC", CurrentDegree = "XYZ", CurrentSemester = 1 }; }
public UsersControllerTest() { _tester = new ControllerTester <UsersController>(); InviteFormModel = new InviteFormModel { Emails = new[] { "*****@*****.**", "*****@*****.**" } }; }
public TopicsControllerReviewsTest() { _tester = new ControllerTester <TopicsController>(); TopicReviewStatus = new TopicReviewStatus { Status = "Reviewed" }; TopicReview = new TopicReview { TopicId = _tester.TopicOne.Id, ReviewerId = _tester.Reviewer.Id, Status = "InReview" }; }
public TopicsControllerTest() { _tester = new ControllerTester <TopicsController>(); TopicFormModel = new TopicFormModel { Title = "Schloss Neuhaus", Status = "InReview", Description = "Castle" }; TopicStatus = new TopicStatus { Status = "InProgress" }; }
public TopicsControllerAttachmentsTest() { _tester = new ControllerTester <TopicsController>(); TopicAttachment = new TopicAttachment { Id = 1, Title = "Dom", TopicId = _tester.TopicOne.Id, Path = "C:\\Source" }; AttachmentFormModel = new AttachmentFormModel { Title = "Dom" }; }
public TopicsControllerMetadataTest() { _tester = new ControllerTester <TopicsController>(); TopicAttachment = new TopicAttachment { Id = 1, Title = "Dom", TopicId = _tester.TopicOne.Id, Path = "C:\\Source" }; Metadata = new Metadata { Title = "Dom features", Type = "Info" }; }
public void TestInitialize() { _controllerTester = this.CreateTester(); }
public PermissionControllerTest() { _tester = new ControllerTester <PermissionsController>(); }
public DownloadControllerTest() { _tester = new ControllerTester <DownloadController>(); }
public AnnotationTagRelationsControllerTest() { _tester = new ControllerTester <AnnotationController>(); }
public UserControllerPictureTest() { _tester = new ControllerTester <UserController>(); }
public void TestInitialize() { _controllerTester = new ControllerTester <ControllerActionTesterTests>(this); }
public TopicsControllerAnalyticsTest() { _tester = new ControllerTester <TopicsController>(); }