コード例 #1
0
ファイル: AdminModelTest.cs プロジェクト: komdil/Kitchen
        public void AddPayment()
        {
            User    user   = new User(Context);
            decimal amount = 10.50M;

            TestEntity.AddPayment(user, amount);

            Assert.IsTrue(TestEntity.Payments.Any(x => x.User == user && x.SummAmount == amount), "If user payed, this info should saved in list of payments!");
        }