Example #1
0
        public void PharmacySystemAdapter_SetPharmacy1Adapter_UnimplementedAdapter()
        {
            var            mockFactory    = new Mock <IHttpClientFactory>();
            AdapterContext adapterContext = new AdapterContext(mockFactory.Object);
            PharmacySystem pharmacy       = new PharmacySystem {
                Id = 2, Name = "apoteka-2", ApiKey = "api-2", Url = "url-2", ActionsBenefitsExchangeName = "exchange-2", ActionsBenefitsSubscribed = true, GrpcAdress = new GrpcAdress("localhost", 30051)
            };

            adapterContext.SetPharmacySystemAdapter(pharmacy);

            Assert.True(adapterContext.PharmacySystemAdapter == null);
        }