Example #1
0
        public static object[] GetUpdateCustomerData(CustomerDto incomingCustomer, CustomerDto expectedCustomer)
        {
            var clonedIncomigCustomer = incomingCustomer.Clone();

            return(new object[]
            {
                clonedIncomigCustomer,
                expectedCustomer
            });
        }
Example #2
0
        public static object[] GetUpdateCustomerCustomerIdInconsistencyData(CustomerDto incomingCustomer, CustomerDto expectedCustomer, Guid customerId)
        {
            var clonedIncomigCustomer = incomingCustomer.Clone();

            return(new object[]
            {
                clonedIncomigCustomer,
                expectedCustomer,
                customerId
            });
        }
Example #3
0
        public static object[] GetCreateCustomerData(CustomerDto incomingCustomer, CustomerDto expectedCustomer)
        {
            var clonedIncomigCustomer = incomingCustomer.Clone();

            if (incomingCustomer != null)
            {
                clonedIncomigCustomer.Id = Guid.Empty;
            }

            return(new object[]
            {
                clonedIncomigCustomer,
                expectedCustomer
            });
        }