Exemplo n.º 1
0
        public void GetAll_ShouldReturnGasGroups()
        {
            // Act
            var returnedGasGroups = _service.GetAll();

            // Assert
            Assert.Equal(TestData.gasGroups,
                         returnedGasGroups);
        }
Exemplo n.º 2
0
        public ActionResult <OperatingConditionsDataResponse> GetData()
        {
            var envAggressiveness     = _envAggressivenessService.GetAll();
            var operatingAreas        = _operatingAreaService.GetAll();
            var gasGroups             = _gasGroupService.GetAll();
            var constructionMaterials = _constructionMaterialService.GetAll();
            var paintworkTypes        = _paintworkTypeService.GetAll();
            var highTensileBoltsTypes = _highTensileBoltsTypeService.GetAll();

            return(Ok(new OperatingConditionsDataResponse(
                          envAggressiveness, operatingAreas, gasGroups,
                          constructionMaterials, paintworkTypes, highTensileBoltsTypes
                          )));
        }