public async Task GetById() { //Arrange var expected = 1; //Act var result = await _service.GetById(expected); //Assert result.Should().NotBeNull(); result.Should().BeAssignableTo <OptionModelExtended>(); result.Id.Should().Be(expected); }