Exemple #1
0
        public async Task <EnterExitRanges> GetRangesOfThisMonth(string username)
        {
            var enters = new List <int>()
            {
                (int)TimerTypes.Enter
            };
            var exits = new List <int>()
            {
                (int)TimerTypes.Exit
            };

            var start = _timeBuilder.GetMonthStartDelimiter();
            var end   = _timeBuilder.GetMonthEndDelimiter();

            return(await GetRangesOf(username, enters, exits, start, end));
        }
Exemple #2
0
 public void build_start_of_month(string date, string startDate)
 {
     _timeGetter.Now.Returns(DateTime.Parse(date));
     _sut.GetMonthStartDelimiter().ToString("yyyy-MM-dd").Should().Be(startDate);
 }