Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
        public void AddCommentEventArgsTestsCorectly_NewInstanceIsCreatedOfSameType()
        {
            var actualInstance = new AddCommentEventArgs(userId, venueId, comment);

            Assert.IsInstanceOf(typeof(AddCommentEventArgs), actualInstance);
        }
Ejemplo n.º 3
0
        public void COnstructorSetsCommentCorrectly()
        {
            var actualInstance = new AddCommentEventArgs(userId, venueId, comment);

            Assert.AreEqual(comment, actualInstance.Comment);
        }
Ejemplo n.º 4
0
        public void AddCommentEventArgsTestsCorectly_NewInstanceIsCreated()
        {
            var actualInstance = new AddCommentEventArgs(userId, venueId, comment);

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