public async Task WhenICreateTheSuggestionsWithTheFollowingInformations(Table table)
        {
            var dtos = table.CreateSet <CreateASuggestionDto>();

            foreach (var dto in dtos)
            {
                _suggestionsContext.CreatedResource = await _suggestionsApi.Create(dto);
            }
        }
Пример #2
0
        public async Task WhenICommentTheSuggestion(string suggestionContent, Table table)
        {
            var suggestionId = await _suggestionsRepository.GetSuggestionId(suggestionContent);

            var dto = table.CreateInstance <CommentASuggestionDto>();

            dto.SuggestionId = suggestionId;

            _suggestionsContext.VotedResource = await _suggestionsApi.Create(dto);
        }