コード例 #1
0
        public void TotalCostAllOutings_ReturningHasValue()
        {
            Outing            _outing = new Outing();
            OutingsRepository _repo   = new OutingsRepository();

            _outing.Attendance    = 50;
            _outing.CostPerPerson = 60;
            _repo.AddToList(_outing);
            int totalSum = _repo.TotalCostAllOutings();

            bool sumHasGirth = (totalSum > 0);

            Assert.IsTrue(sumHasGirth);
        }