コード例 #1
0
        public void Z_RemoveOpeningTest()
        {
            OpeningsService.RemoveOpening(Opening);
            var removedOpening = OpeningsService.GetOpeningFromId(Opening.Id);

            Assert.AreEqual(removedOpening.Id, -1);
        }
コード例 #2
0
        public void Y_TestAddedOpening()
        {
            var addedOpening = OpeningsService.GetOpeningFromId(Opening.Id);

            Assert.AreEqual(addedOpening.HourlyPay, Opening.HourlyPay);
        }
コード例 #3
0
        //[TestCase(1, 77f)]
        //[TestCase(2, 23f)]
        //[TestCase(3, 75f)]
        //[TestCase(4, 56f)]
        //[TestCase(5, 76f)]
        public void GetOpeningFromIdTest(int id, float result)
        {
            var opening = OpeningsService.GetOpeningFromId(id);

            Assert.AreEqual(opening.HourlyPay, result);
        }