Exemplo n.º 1
0
        public async Task Import_Success()
        {
            var dtos = new List <ResponseDto>
            {
                new ResponseDto
                {
                    Body       = "content",
                    Method     = "GET",
                    Route      = "/route1",
                    StatusCode = 200
                },
                new ResponseDto
                {
                    Body       = "content",
                    Method     = "GET",
                    Route      = "/route2",
                    StatusCode = 200
                }
            };

            var result      = (await _controller.Import(dtos)).Result as OkObjectResult;
            var resultValue = result.Value as ResponseImportResult;

            resultValue.Message.Should().Be("Import successful");
        }