/// <summary>
 /// Tests to ensure we can pull the data from the clocking devices, based on IP's
 /// (in the config file) and saves it to the DB.
 /// </summary>
 //[TestMethod]
 public void Test_NH_ProcessClockingData()
 {
     using (var ctx = new IntranetNhContext())
     {
         var isHoliday = ctx.IsHolidayToday();
         UoWStaff.ProcessClocking();
         //ctx.SaveChanges();
     }
 }
Exemple #2
0
 public void Test_EF_ProcessClockingData()
 {
     using (var ctx = new DataContextEF())
     {
         var isHoliday = ctx.IsHolidayToday();
         UoWStaff.ProcessClocking();
         ctx.SaveChanges();
     }
 }
        /// <summary>
        /// Tests to ensure we can push data by using the "file download " option
        /// from the clocking devices and pass in the TextFile for processing and saves it to the DB.
        /// </summary>
        //[TestMethod]
        public void Test_NH_ProcessClockingDataFromFilesingle()
        {
            using (var ctx = new IntranetNhContext())
            {
                String lsFileName = @"..\..\Clock Data Files\TIME005.TXT";

                var isHoliday = ctx.IsHolidayToday();
                UoWStaff.ProcessClocking(lsFileName);
                //ctx.SaveChanges();
            }
        }
        /// <summary>
        /// Tests to ensure we can push data by using "file download" option from the clocking devices
        /// and pass in a list of TextFiles for processing and saves it to the DB.
        /// </summary>
        //[TestMethod]
        public void Test_NH_ProcessClockingDataFromFileList()
        {
            using (var ctx = new IntranetNhContext())
            {
                IList <String> fileList = new List <String>();
                fileList.Add(@"..\..\Clock Data Files\TIME005.TXT");
                fileList.Add(@"..\..\Clock Data Files\TIME006.TXT");
                fileList.Add(@"..\..\Clock Data Files\TIME009.TXT");

                var isHoliday = ctx.IsHolidayToday();
                UoWStaff.ProcessClocking(fileList);
                //ctx.SaveChanges();
            }
        }