Beispiel #1
0
        // [Fact]
        // public void Donation_SaveDonation_SaveToDB()
        // {
        //   ContactInformation info = new ContactInformation("950 W.Burnside, Portland", "*****@*****.**", "(123)456-7890");
        //   User newUser = new User("Anna", "anna123", "123",  info);
        //   newUser.Save();
        //   Donation controlDonation = new Donation(newUser.Id, 1, 25, new DateTime(2017, 05, 21), 2);
        //   controlDonation.Save();
        //
        //   Donation testDonation  = Donation.GetAll()[0];
        //   Assert.Equal(controlDonation, testDonation);
        // }

        public void Dispose()
        {
            Category.DeleteAll();
            User.DeleteAll();
            Donation.DeleteAll();
            Campaign.DeleteAll();
        }