예제 #1
0
        public async Task Save_Existing_DoesNotChangeCount()
        {
            var racesBefore = await _service.GetRacesAsync(
                _clubId
                );

            var dto = _mapper.Map <RaceDto>(racesBefore.First());
            await _service.SaveAsync(dto);

            var racesAfter = await _service.GetRacesAsync(
                _clubId
                );

            Assert.Equal(racesBefore.Count(), racesAfter.Count());
        }