public void TestCaseSetUp() { factory = TestObjectFactory.CreateMockTradeFinderFactory(); page = new ReportsPage(factory); emptyHeaders = new NameValueCollection(); emptyQuery = new NameValueCollection(); }
public static TradeFinder CreateTradeFinder() { Map map = TestObjectFactory.CreateMap(); ItemDatabase database = TestObjectFactory.CreateItemDatabase(); Market market = TestObjectFactory.CreateMarket(database, map); Parameters parameters = new Parameters(1000.0f, 100.0f, "Line1", TripType.SingleTrip); return(MockTradeFinderFactory.CreateMock(map, market, TestObjectFactory.TestDirectory + "Logs", parameters)); }
public void TestCreate() { TradeFinder finder = MockTradeFinderFactory.CreateMock(map, market, testLogPath, parameters); Assert.IsNotNull(finder, "Null trade finder returned by create instead of a valid one"); Assert.IsNotEmpty(finder.SingleTrips); }