コード例 #1
0
ファイル: ReportsPageTest.cs プロジェクト: Calthurian/navbot
 public void TestCaseSetUp()
 {
     factory      = TestObjectFactory.CreateMockTradeFinderFactory();
     page         = new ReportsPage(factory);
     emptyHeaders = new NameValueCollection();
     emptyQuery   = new NameValueCollection();
 }
コード例 #2
0
        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));
        }
コード例 #3
0
 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);
 }