public async Task GetPublishedProviderInformation_CallsCorrectly()
        {
            IPublishedProviderRetrievalService publishedProviderRetrievalService = Substitute.For <IPublishedProviderRetrievalService>();

            ProviderController controller = new ProviderController(publishedProviderRetrievalService);

            string publishedProviderVersion = "1234";

            await controller.GetPublishedProviderInformation(publishedProviderVersion);

            await publishedProviderRetrievalService
            .Received(1)
            .GetPublishedProviderInformation(Arg.Is(publishedProviderVersion));
        }
Exemple #2
0
 public ProviderController(IPublishedProviderRetrievalService providerServiceRetrievalService)
 {
     _providerServiceRetrievalService = providerServiceRetrievalService;
 }