public void should_create_the_NiceLittleForm_to_the_repository()
        {
            _addDeleteNewLittleForm = new NiceLittleForm {Id = guid};

            controller.Create(_addDeleteNewLittleForm);

            repository.Received().Add(_addDeleteNewLittleForm);
        }
        public void should_remove_the_NiceLittleForm_with_the_repository()
        {
            _addDeleteNewLittleForm = new NiceLittleForm() { Id = guid };
            resultsRows.Add(_addDeleteNewLittleForm);

            controller.DeleteConfirmed(guid);
            repository.Received().Delete(_addDeleteNewLittleForm);

            resultsRows.Remove(_addDeleteNewLittleForm);
        }
        public ActionResult Create(NiceLittleForm nicelittleform)
        {
            if (ModelState.IsValid)
            {
                nicelittleform.Id = Guid.NewGuid();
                nicelittleform.Stamp = DateTime.Now;
                repository.Add(nicelittleform);
                workingDatabaseSession.Commit();
            }

            return View(nicelittleform);
        }
        public void should_show_NiceLittleForm_details()
        {
            _addDeleteNewLittleForm = new NiceLittleForm() { Id = guid };
            resultsRows.Add(_addDeleteNewLittleForm);

            controller.Details(guid).ShouldNotBe(null);

            resultsRows.Remove(_addDeleteNewLittleForm);
        }
 /// <summary>
 /// Create a new NiceLittleForm object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="stamp">Initial value of the Stamp property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 public static NiceLittleForm CreateNiceLittleForm(global::System.Guid id, global::System.DateTime stamp, global::System.String firstName, global::System.String email)
 {
     NiceLittleForm niceLittleForm = new NiceLittleForm();
     niceLittleForm.Id = id;
     niceLittleForm.Stamp = stamp;
     niceLittleForm.FirstName = firstName;
     niceLittleForm.Email = email;
     return niceLittleForm;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the NiceLittleForms EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToNiceLittleForms(NiceLittleForm niceLittleForm)
 {
     base.AddObject("NiceLittleForms", niceLittleForm);
 }