示例#1
0
 public CalculatorViewModel(IMathRepository mathRepository, IResultRepository resultRepository, IDialogPlugin dialogPlugin, ILogger logger)
 {
     _mathRepository   = mathRepository;
     _resultRepository = resultRepository;
     _dialogPlugin     = dialogPlugin;
     _logger           = logger;
 }
        public CalculatorManagerTestsAlternate()
        {
            _mathRepository = Substitute.For <IMathRepository>();

            _mathRepository.GetIntMax().Returns(Int32.MaxValue);
            _mathRepository.GetIntMin().Returns(Int32.MinValue);

            _calculatorManager = new CalculatorManager(_mathRepository);
        }
示例#3
0
 public MathApiController(IMathRepository _mathRepository)
 {
     mathRepository = _mathRepository;
 }
示例#4
0
 public CalculatorManager(IMathRepository mathRepositories)
 {
     _mathRepositories = mathRepositories;
 }
 public MathController(IMathRepository mathRepository)
 {
     _mathRepository = mathRepository;
 }