Created
December 19, 2012 14:38
-
-
Save jmarmolejos/4337099 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void MergeCustomers() | |
{ | |
using (TransactionScope scope = new TransactionScope()) | |
{ | |
var context = new AdminModelEntities(); | |
var service = new CustomersService(context); | |
var newCustomerId = service.MergeCustomers(new List<int> { 523184, 530696 }); | |
var count = context.T_APPOINTMENT.Where(c => c.CUSTOMER_ID == newCustomerId).Count(); | |
Assert.AreEqual(946, count); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment