コード例 #1
0
        public async Task GetByQuestionId()
        {
            //Arrange
            var expected = 1;
            //Act
            var result = await _service.GetByQuestionId(expected);

            //Assert
            result.Should().NotBeNull();
            result.Should().BeAssignableTo <OptionModelExtended>();
        }
コード例 #2
0
        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> >();
        }