public void ShouldGetCustomerById() { var id = Guid.Parse("199b9325-8c2b-468d-a1cc-9b6020192e0d"); var queryresult = _sut.Get(id); Assert.Equal("BusinessName", queryresult.BusinessName); }
public IActionResult GetCustomer(Guid id) { var customerFromRepo = _talaCustomerRepository.Get(id); if (customerFromRepo == null) { return(NotFound()); } var customer = Mapper.Map <CustomerDto>(customerFromRepo); return(Ok(customer)); }