public async Task GetByQuestionId() { //Arrange var expected = 1; //Act var result = await _service.GetByQuestionId(expected); //Assert result.Should().NotBeNull(); result.Should().BeAssignableTo <OptionModelExtended>(); }
public async Task GetByQuestionId() { // Arrange var expected = 1; // Act var result = await _service.GetByQuestionId(expected); // Assert result.Should().NotBeNull(); result.Should().NotBeEmpty().And.HaveCount(expected); result.Should().BeAssignableTo <IEnumerable <Models.Models.Option.OptionModelExtended> >(); }