Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task Then_Gets_Provider_Details_From_Api( uint ukPrn, ProviderApiResponse providerFromApi, [Frozen] Mock <IFindApprenticeshipTrainingService> mockApiClient, ProviderService service) { mockApiClient .Setup(client => client.GetProvider(ukPrn)) .ReturnsAsync(providerFromApi); var providerDetails = await service.GetDetails(ukPrn); providerDetails.Should().BeEquivalentTo((ProviderDetails)providerFromApi); }