public void ShouldGetCustomers() { //given customersContext.AddExampleCustomers(); //when IEnumerable <Customer> cust = repo.GetCustomers(); List <Customer> custList = new List <Customer>(cust); //then Assert.AreEqual(customersContext.Customers.Local.Count, custList.Count); }