private void View_AddComment(object sender, AddCommentEventArgs e)
 {
     this.commentService.CreateComment(this.ParseGuid(e.UserID), this.ParseId(e.VenueId), e.Comment);
     this.View.Model.Venue = this.venueService.GetVenue(this.ParseId(e.VenueId));
 }
示例#2
0
        public void AddCommentEventArgsTestsCorectly_NewInstanceIsCreatedOfSameType()
        {
            var actualInstance = new AddCommentEventArgs(userId, venueId, comment);

            Assert.IsInstanceOf(typeof(AddCommentEventArgs), actualInstance);
        }
示例#3
0
        public void COnstructorSetsCommentCorrectly()
        {
            var actualInstance = new AddCommentEventArgs(userId, venueId, comment);

            Assert.AreEqual(comment, actualInstance.Comment);
        }
示例#4
0
        public void AddCommentEventArgsTestsCorectly_NewInstanceIsCreated()
        {
            var actualInstance = new AddCommentEventArgs(userId, venueId, comment);

            Assert.That(actualInstance, Is.Not.Null);
        }