コード例 #1
0
 public void CreateTest3()
 {
     AttendeeController target = new AttendeeController(); // TODO: Initialize to an appropriate value
     ActionResult expected = null; // TODO: Initialize to an appropriate value
     ActionResult actual;
     actual = target.Create();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #2
0
        public void CreateTest()
        {
            Initialize();
            AttendeeController target = new AttendeeController(_repository);
            FormCollection collection = ConvertAttendeeToFormCollection(attendee1);
            ActionResult expected = new RedirectToRouteResult(String.Empty, new RouteValueDictionary());
            ActionResult actual = target.Create(collection);

            IQueryable<Attendee> attendeeList = _repository.GetAllAttendees();
            Assert.IsTrue(attendeeList.Contains(attendee1));
        }