public void GetLastRecordListRutorTest() { DataBaseControl db = new DataBaseControl(); List <ItemList> lastPreposts = db.GetLastRecordListRutor(); Assert.AreEqual(100, lastPreposts.Count()); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); DataBaseControl db = new DataBaseControl(); db.GetLastRecordListRutor(); Application.Run(new Form_Main()); }