示例#1
0
        public void CheckAddingOrderToTheDriver()
        {
            //Arrange
            DeliveryOrder order  = OrderObjectMother.CreateOrder();
            Driver        driver = DriverObjectMother.CreateDriver();

            //Act
            deliveryService.AddOrderToDriver(order, driver);

            //Assert
            Assert.AreSame(driver, order.driver);
            Assert.IsTrue(driver.orders.Contains(order));
        }