public void TestCreateInvalidOrder()
        {
            // Arrange
            string nullCustomerFirst   = null;
            Order  newInvalidTestOrder = CreateTestOrder(nullCustomerFirst);

            // Act
            OrdersProvider          orderProvider = new OrdersProvider(_mockOrderRepository.Object, null);
            ProviderResponseWrapper outputCreateOrderDocumentsAsProviderResponseWrapper = orderProvider.CreateOrderDocument(newInvalidTestOrder);

            // Assert
            Assert.AreEqual("Some fields are completed incorrect. Please re-enter values again.", outputCreateOrderDocumentsAsProviderResponseWrapper.ResponseMessage);
        }
        public void TestCreateNullOrder()
        {
            // Arrange
            Order newNullTestOrder = null;

            // Act
            OrdersProvider          orderProvider = new OrdersProvider(_mockOrderRepository.Object, null);
            ProviderResponseWrapper outputCreateOrderDocumentsAsProviderResponseWrapper = orderProvider.CreateOrderDocument(newNullTestOrder);

            // Assert
            Assert.AreEqual("The form has not been fully complete, please send a completed form.", outputCreateOrderDocumentsAsProviderResponseWrapper.ResponseMessage);
        }
        public void TestCreateValidOrder()
        {
            // Arrange
            string validCustomerFirst = "test";
            Order  newValidTestOrder  = CreateTestOrder(validCustomerFirst);

            // Act
            _mockOrderRepository.Setup(x => x.CreateOrderDocument(It.IsAny <OrderDTO>())).Returns("New item Inserted");
            OrdersProvider          orderProvider = new OrdersProvider(_mockOrderRepository.Object, null);
            ProviderResponseWrapper outputCreateOrderDocumentsAsProviderResponseWrapper = orderProvider.CreateOrderDocument(newValidTestOrder);

            // Assert
            Assert.AreEqual("New item Inserted", outputCreateOrderDocumentsAsProviderResponseWrapper.ResponseMessage);
        }