Exemple #1
0
        public async Task AddAsync_ShouldAddNewExercise()
        {
            var exercise = _fixture.Build <Exercise>()
                           .Create();

            await _sut.AddAsync(exercise.Name, exercise.PartOfBody.Name.ToString());

            await _exerciseRepository.Received(1).AddAsync(Arg.Any <Exercise>());
        }