public void GetCurrentWeekNumber_ShouldBeNewWeek() { List <WeeklyStats> stats = repoLayer.GetWeeklyStats(serviceLayer.GetConnection()); repoLayer.ClearWeeklyStats(serviceLayer.GetConnection()); foreach (WeeklyStats stat in stats) { stat.WeekDate = stat.WeekDate.AddDays(-8); repoLayer.InsertWeeklyStats(serviceLayer.GetConnection(), stat); } serviceLayer.GetCurrentWeekNumber().Should().Be(6); }
/// <summary> /// Clear weekly stats /// </summary> public void ClearWeeklyStats() { repoLayer.ClearWeeklyStats(connection); }