Skip to content

Instantly share code, notes, and snippets.

@jmarmolejos
Created December 19, 2012 14:38
Show Gist options
  • Save jmarmolejos/4337099 to your computer and use it in GitHub Desktop.
Save jmarmolejos/4337099 to your computer and use it in GitHub Desktop.
[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