public void SearchCustomerNameShouldReturnCustomer() { using (var context = new Entity.StoreDBContext(options)) { IStoreRepository _repo = new StoreRepoDB(context, new StoreMapper()); var foundCustomer = _repo.SearchCustomerName("Joe"); Assert.NotNull(foundCustomer); Assert.Equal("Joe", foundCustomer.CustomerName); } }