Esempio n. 1
0
        public async void GetNextSequence_UpdateCurrentDateCounter()
        {
            var jobCounterService = new JobCounterService(_jobCounterRepository.Object);
            int nextSequence      = await jobCounterService.GetNextSequence();

            Assert.Equal(2, nextSequence);
        }
Esempio n. 2
0
        public async void GetNextSequence_AddNewDateCounter()
        {
            _data.Clear();

            var jobCounterService = new JobCounterService(_jobCounterRepository.Object);
            int nextSequence      = await jobCounterService.GetNextSequence();

            Assert.Equal(1, nextSequence);
        }