예제 #1
0
        public void BalanceAppServiceTest_IsValidBusLine_IsValid()
        {
            _balanceRepository.Setup(b => b.IsValidBusLine(_busLine.Line)).Returns(true);

            var service = new BalanceAppService(_balanceRepository.Object);

            service.IsValidBusLine(_busLine.Line);

            _balanceRepository.Verify(b => b.IsValidBusLine(_busLine.Line), Times.Once);
        }
예제 #2
0
        public void BalanceAppServiceTest_IsValidBusLine_NotExists()
        {
            var service = new BalanceAppService(_balanceRepository.Object);

            service.IsValidBusLine("9191");
        }
예제 #3
0
        public void BalanceAppServiceTest_IsValidBusLine_Required()
        {
            var service = new BalanceAppService(_balanceRepository.Object);

            service.IsValidBusLine("");
        }