Exemple #1
0
        public void DeletePaymentType()
        {
            Assert.IsNotNull(repo.GetUniq <PaymentMethod>(p => p.Price == 400M));

            PaymentType toDelete = repo.GetUniq(p => p.Title == "CASH");

            repo.Delete(toDelete);
            repo.Save();

            Assert.IsNull(repo.GetUniq <PaymentMethod>(p => p.Price == 400M));
        }