public OperatingAreaServiceTest()
        {
            // Arrange
            var repository = new Mock <IOperatingAreaRepo>();

            repository.Setup(mock =>
                             mock.GetAll()).Returns(TestData.operatingAreas);

            _service = new OperatingAreaService(repository.Object);
        }
Exemplo n.º 2
0
 public MarkOperatingConditionsController(
     IMarkOperatingConditionsService markOperatingConditionsService,
     IEnvAggressivenessService envAggressivenessService,
     IOperatingAreaService operatingAreaService,
     IGasGroupService gasGroupService,
     IConstructionMaterialService constructionMaterialService,
     IPaintworkTypeService paintworkTypeService,
     IHighTensileBoltsTypeService highTensileBoltsTypeService,
     IMapper mapper)
 {
     _service = markOperatingConditionsService;
     _envAggressivenessService    = envAggressivenessService;
     _operatingAreaService        = operatingAreaService;
     _gasGroupService             = gasGroupService;
     _constructionMaterialService = constructionMaterialService;
     _paintworkTypeService        = paintworkTypeService;
     _highTensileBoltsTypeService = highTensileBoltsTypeService;
     _mapper = mapper;
 }