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)); }
public void AddCommentEventArgsTestsCorectly_NewInstanceIsCreatedOfSameType() { var actualInstance = new AddCommentEventArgs(userId, venueId, comment); Assert.IsInstanceOf(typeof(AddCommentEventArgs), actualInstance); }
public void COnstructorSetsCommentCorrectly() { var actualInstance = new AddCommentEventArgs(userId, venueId, comment); Assert.AreEqual(comment, actualInstance.Comment); }
public void AddCommentEventArgsTestsCorectly_NewInstanceIsCreated() { var actualInstance = new AddCommentEventArgs(userId, venueId, comment); Assert.That(actualInstance, Is.Not.Null); }