Example #1
0
 public void Execute()
 {
     try
     {
         var customers = customerReadOnlyRepository.GetAll();
         output.Standard(customers);
     }
     catch (System.Exception ex)
     {
         output.Error($"Error on process: {ex.Message}");
     }
 }
 public IEnumerable <Domain.Entities.Customer.Customer> Execute(int userId)
 {
     return(customerReadOnlyRepository.GetAll());
 }
Example #3
0
        public void ShouldGetAll()
        {
            var models = customerReadOnlyRepository.GetAll();

            models.Should().HaveCountGreaterThan(1);
        }