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); }
public void BalanceAppServiceTest_IsValidBusLine_NotExists() { var service = new BalanceAppService(_balanceRepository.Object); service.IsValidBusLine("9191"); }
public void BalanceAppServiceTest_IsValidBusLine_Required() { var service = new BalanceAppService(_balanceRepository.Object); service.IsValidBusLine(""); }