示例#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("");
        }