Пример #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));
        }
Пример #2
0
 public void build_end_of_month(string date, string endDate)
 {
     _timeGetter.Now.Returns(DateTime.Parse(date));
     _sut.GetMonthEndDelimiter().ToString("yyyy-MM-dd").Should().Be(endDate);
 }