Esempio n. 1
0
        public void GetAll_ShouldReturnEnvAggressiveness()
        {
            // Act
            var returnedEnvAggressivenesss = _service.GetAll();

            // Assert
            Assert.Equal(TestData.envAggressiveness,
                         returnedEnvAggressivenesss);
        }
Esempio 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
                          )));
        }