public async Task CanListAllSkills() { var expectedSkills = new List <Skill>(); _skillRepository.GetAllWithEffectsAsync() .Returns(expectedSkills); var actualSkills = await _skillService.GetSkillsAsync(); actualSkills.Should().BeSameAs(expectedSkills); }
public void OnGet() { skills.AddRange(skillService.GetSkillsAsync(1).Result); }