コード例 #1
0
        public async Task WhenBaseSkillSaved_ShouldReturnListOfAllBasicSkillsWithSkillsSelected(string[] selectedSkills, int selectedCount)
        {
            var fixture = new SkillsOrchestratorTestsFixture();

            fixture
            .WithSelectedSkills(selectedSkills)
            .Setup();

            var vacancyRouteModel = new VacancyRouteModel
            {
                EmployerAccountId = fixture.Vacancy.EmployerAccountId,
                VacancyId         = fixture.Vacancy.Id
            };

            var skillsViewModel = await fixture.GetSkillsViewModelAsync(vacancyRouteModel);

            fixture.VerifySelectedSkillsCount(skillsViewModel, selectedCount);
        }