public void TestConstructorLoadsUpTheTree() { _stationFinderMock = new Mock<IStationRepository>(); _stationFinderMock.Setup(x => x.AllStations()).Verifiable(); _prefixTreeMock.Setup(x => x.Add(It.IsAny<IEnumerable<string>>())).Verifiable(); _stationFinderBll = new StationFinderBll(_stationFinderMock.Object, _prefixTreeMock.Object); _prefixTreeMock.VerifyAll(); _stationFinderMock.VerifyAll(); }
public void TestInit() { _stationFinderMock = new Mock<IStationRepository>(); _prefixTreeMock = new Mock<IPrefixTree>(); _stationFinderBll = new StationFinderBll(_stationFinderMock.Object, _prefixTreeMock.Object); }