public void AddProductShouldAddProductToOrder() { // Given A.CallTo(() => _addProductToOrderCommand.Run(Constants.IphoneCaseOrder.Id, Constants.IphoneCase.Id)) .DoesNothing(); // When _ordersController.AddProduct(Constants.IphoneCaseOrder.Id, new ProductWrapper(Constants.IphoneCase.Id)); // Then A.CallTo(() => _addProductToOrderCommand.Run(Constants.IphoneCaseOrder.Id, Constants.IphoneCase.Id)) .MustHaveHappened(); }