public void SubmitMagazineSubscriptionSavesInformationIntoSubscriptions()
        {
            MagazineSubscription magazineSubscription = new MagazineSubscription();
            magazineSubscription.First = "Vidya";
            magazineSubscription.Last = "Sridhar";
            magazineSubscription.Address = "Address";
            magazineSubscription.City = "City";
            magazineSubscription.State = "State";
            magazineSubscription.ZipCode = "64106";
            magazineSubscription.Magazine = "Time";
            int subScriptionId = magazineSubscription.Save();

            MagazineSubscription savedSubscription = MagazineSubscription.LoadMagazineSubscription(subScriptionId);
            Assert.IsNotNull(savedSubscription, "Did not load a saved subscription");
        }
        public void MagazineSubscriptionAcceptsNameAddressInformation()
        {
            MagazineSubscription magazineSubscription = new MagazineSubscription();
            magazineSubscription.First = "Vidya";
            magazineSubscription.Last = "Sridhar";
            magazineSubscription.Address = "Address";
            magazineSubscription.City = "City";
            magazineSubscription.State = "State";
            magazineSubscription.ZipCode = "64106";

            Assert.AreEqual("Vidya", magazineSubscription.First, "First Name must have set/get");
            Assert.AreEqual("Sridhar", magazineSubscription.Last, "Last Name must have set/get");
            Assert.AreEqual("Address", magazineSubscription.Address, "Address must have setter/getter");
            Assert.AreEqual("City", magazineSubscription.City, "City must have setter/getter");
            Assert.AreEqual("State", magazineSubscription.State, "State must have setter/getter");
            Assert.AreEqual("64106", magazineSubscription.ZipCode, "ZipCode must have setter/getter");
        }
        public static MagazineSubscription LoadMagazineSubscription(int SubscriptionId)
        {
            // Fake loading.  Add in loading later.
            if (SubscriptionId == 1)
            {
                MagazineSubscription magazineSubscription = new MagazineSubscription();
                magazineSubscription.First = "Vidya";
                magazineSubscription.Last = "Sridhar";
                magazineSubscription.Address = "Address";
                magazineSubscription.City = "City";
                magazineSubscription.State = "State";
                magazineSubscription.ZipCode = "64106";
                magazineSubscription.Magazine = "Time";

                return magazineSubscription;
            }
            else
            {
                return null;
            }
        }
 public void TestCreationOfMagazineSubscription()
 {
     MagazineSubscription magazineSubscription = new MagazineSubscription();
     Assert.IsNotNull(magazineSubscription, "Did not create magazine subscription option");
 }