public void EquityOrderFactory_CreatesBuyOrder()
        {
            EquityOrderFactory sut         = new EquityOrderFactory(orderServiceFake, loggerFake);
            IEquityOrder       equityOrder = sut.Create(OrderType.Buy, equityCode, quantity, threshold);

            Assert.IsInstanceOf <EquityOrderBuy>(equityOrder);
        }
Exemple #2
0
        public void SetUp()
        {
            this._orderServiceMock = new Mock <IOrderService>();

            this._equityOrderFactory = new EquityOrderFactory(this._orderServiceMock.Object);

            this._sut = _equityOrderFactory.Create(EQUITY_CODE, 10, TRESHOLD);
        }