public async Task <IActionResult> Edit(int id) { var topics = await _topicService.GetAllTopicsAsync(); ViewData["TopicId"] = new SelectList(topics, "Id", "Name"); var testBaseDtoToEdit = await _testBaseService.GetTestBaseByIdAsync(id); return(View(testBaseDtoToEdit)); }
public async Task GetTestBaseByIdAsync_ItemExists_ReturnsTestBaseDto() { var act = await _service.GetTestBaseByIdAsync(1); act.Should().BeOfType <TestBaseDto>(); }