Beispiel #1
0
        public void GetAllCustomersShouldReturnAllCustomers()
        {
            using (var context = new Entity.wssdbContext(options))
            {
                //Arrange the test context
                CustomerRepoDB _repo = new CustomerRepoDB(context, mapper);

                //Act
                var customers = _repo.GetAllCustomers();
                //Assert
                Assert.Equal(3, customers.Count);
            }
        }
 public List <Customer> GetAllCustomers()
 {
     return(_repo.GetAllCustomers());
 }