コード例 #1
0
ファイル: CCMatrixTests.cs プロジェクト: c-kar/CardCostApi
        public CCMatrixTests()
        {
            var mockMapper = new Mock <IMapper>();

            _mapper = mockMapper.Object;
            _mapper = new MapperConfiguration(c =>
                                              c.AddProfile <ApplicationMappings.ApplicationMappings>()).CreateMapper();
            _mockRepository         = new CCMatrixMockRepository();
            _service                = new CCMatrixService(_mockRepository, _mapper);
            _clearingCostController = new ClearingCostMatrixController(_service);
        }
コード例 #2
0
 public ClearingCostMatrixController(ICCMatrixService clearingCostService) => _clearingCostService = clearingCostService;