Exemplo n.º 1
0
        public async Task GetInstructionByControl_ShouldReturnOkNegotiatedContentResult()
        {
            //Arrange
            _mockUnitOfWork.Setup(uw => uw.QualityControlRepository
                                  .GetWithDetailsAsync(It.IsAny <int>()))
            .Returns(Task.FromResult(control));

            //Act
            var result = await _controller.GetByProduct(1);

            //Assert
            result.Should().BeOfType <OkNegotiatedContentResult <ICollection <Instruction> > >();
        }