public void Must_Throws_Invalid_Input_Exception()
        {
            BlackScholesInput blackScholesInput = _fileReaderMock.GetOne();

            blackScholesInput.Name = "AAA BBB";
            _blackScholesCalculator.CalculateFor(blackScholesInput);
        }
        public void Must_Throws_Invalid_Call_Option_Exception()
        {
            BlackScholesInput blackScholesInput = _fileReaderMock.GetOne();

            blackScholesInput.Cp = 'M';

            _blackScholesCalculator.CalculateFor(blackScholesInput);
        }
示例#3
0
 public BlackScholesResult(BlackScholesInput input)
 {
     this.Id     = input.Id;
     this.Name   = input.Name;
     this.Type   = input.Type;
     this.Style  = input.Style;
     this.Strike = input.Strike;
     this.Expiry = input.Expiry;
     this.Cp     = input.Cp;
     this.Ccy    = input.Ccy;
 }
 public void Must_Calculate_With_Success_For_One()
 {
     BlackScholesInput blackScholesInput = _fileReaderMock.GetOne();
     double            result            = _blackScholesCalculator.CalculateFor(blackScholesInput);
 }