Esempio n. 1
0
 public void GetCustomers()
 {
     var repository  = Substitute.For<ICustomerRepository>();
     var customers = new List<CustomerValue>();
     customers.Add(new CustomerValue() { CustomerID = "ABC" });
     repository.GetCustomers().Returns<IEnumerable<CustomerValue>>(customers);
     var collection = new CustomerCollection(repository);
     var values =  collection.Get();
     Assert.IsNotEmpty(values);
 }