public void ValidOrderSubmitsOrderToOrderFullfillmentService()
        {
            //Arrange
            var order = GenerateValidOneProductOrder();

            //Act
            _orderService.PlaceOrder(order);

            //Assert
            _orderFulfillmentService.Received().Fulfill(order);
        }
        public void ValidOrderIsSubmittedToTheOrderFulfillmentService()
        {
            // Arrange
            var order = GetValidOrderWithTwoItems();

            // Act
            _subject.PlaceOrder(order);

            // Assert
            _orderFulfillmentService.Received().Fulfill(order);
        }
Пример #3
0
        public void ValidOrder_OrderSummaryReturned_AndSubmittedToOrderFulfillmentService()
        {
            // Arrange
            var order = ValidOrderSetup();

            // Act
            var results = orderService.PlaceOrder(order);

            // Assert
            _orderFulfillmentService.Received().Fulfill(order);
        }
Пример #4
0
        public void OrderService_PlaceOrder_SubmitsToOrderFullfillmentService()
        {
            //Arrange
            var order = Get_Order_WithoutDuplicates();

            _productRepo.AllItemsAreStocked();
            _orderFulfillment.SetOrderFullfillmentReturn(order);

            //Act
            _sut.PlaceOrder(order);

            //Assert
            _orderFulfillment.Received().Fulfill(order);
        }