Example #1
0
        public async Task CancelInstruction_ValidInstruction_ShouldReturnOk()
        {
            // Arrange
            instruction.Status = InstructionStatus.Pending;
            control.Status     = QualityControlStatus.Open;
            // Act
            var result = await _controller.CancelInstructionAsync(1);

            // Assert
            result.Should().BeOfType <OkResult>();
        }