Example #1
0
 public void IndexTest()
 {
     IRepository repository = null; // TODO: Initialize to an appropriate value
     WeddingController target = new WeddingController(repository); // TODO: Initialize to an appropriate value
     ActionResult expected = null; // TODO: Initialize to an appropriate value
     ActionResult actual;
     actual = target.Index();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public ActionResult ResendEmail(string refId)
 {
     if (string.IsNullOrEmpty(refId))
     {
         return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
     }
     var guest = db.Guests.FirstOrDefault(g => g.RefId.Equals(refId));
     if (guest == null)
     {
         return HttpNotFound();
     }
     var api = new WeddingController();
     api.ResendInviteEmail(refId);
     return View("Details", guest);
 }
Example #3
0
 public void WeddingControllerConstructorTest()
 {
     IRepository repository = null; // TODO: Initialize to an appropriate value
     WeddingController target = new WeddingController(repository);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }