public void Constructor_should_initialize_all_properties()
        {
            RsvpViewModel model = new RsvpViewModel(null);

            Assert.IsEmpty(model.AttendeeName);
            Assert.IsEmpty(model.AttendeeNameId);
            Assert.AreEqual(0, model.Id);
            Assert.AreEqual(0, model.DinnerId);
        }
        public void Constructor_should_load_given_entity_data()
        {
            Rsvp rsvp = new Rsvp
            {
                Id = 2,
                DinnerId = 3,
                AttendeeName = "Some name",
                AttendeeNameId = "Some name id"
            };

            RsvpViewModel model = new RsvpViewModel(rsvp);

            Assert.AreEqual(rsvp.Id, model.Id);
            Assert.AreEqual(rsvp.DinnerId, model.DinnerId);
            Assert.AreEqual(rsvp.AttendeeName, model.AttendeeName);
            Assert.AreEqual(rsvp.AttendeeNameId, model.AttendeeNameId);
        }