public void TestGetUsersDailyRecords(DateTime dateTime) { var records = TimeRecordRepo.GetUserDailyRecords(UserA, dateTime); Console.WriteLine("\n"); Console.WriteLine("Test daily report records"); PrintTimeRecordsInfo(records); }
public void TestAddAndGetTimeRecords() { TimeRecordRepo.Add(SupportRepositoryJsonFileTesting.GenerateStartWorkingTimeRecord(UserA, -1)); TimeRecordRepo.Add(SupportRepositoryJsonFileTesting.GenerateStartWorkingTimeRecord(UserA, 0)); TimeRecordRepo.Add(SupportRepositoryJsonFileTesting.GenerateStartWorkingTimeRecord(UserA, 0)); TimeRecordRepo.Add(SupportRepositoryJsonFileTesting.GenerateStartWorkingTimeRecord(UserB, -2)); TimeRecordRepo.Add(SupportRepositoryJsonFileTesting.GenerateStartWorkingTimeRecord(UserB, -1)); TimeRecordRepo.Add(SupportRepositoryJsonFileTesting.GenerateStartWorkingTimeRecord(UserB, 0)); var records = TimeRecordRepo.GetAll(); Console.WriteLine("\n"); Console.WriteLine("Test add and get records"); PrintTimeRecordsInfo(records); }