public void SdsService_GetForAsidNull()
        {
            var service = new SdsService(_nrlsMongoDBCaller, _cache);

            var result = service.GetFor("999");

            Assert.Null(result);
        }
        public void SdsService_GetForOrgInteractionInvalid()
        {
            var service = new SdsService(_nrlsMongoDBCaller, _cache);

            var result = service.GetFor("TestOrgCode", "urn:nhs:names:services:nrls:fhir:rest:danger:documentreference");

            Assert.Null(result);
        }
        public void SdsService_GetForOrgNUll()
        {
            var service = new SdsService(_nrlsMongoDBCaller, _cache);

            var result = service.GetFor("TestOrgCodeBlaaa", null);

            Assert.Null(result);
        }
        public void SdsService_GetForAsid()
        {
            var service = new SdsService(_nrlsMongoDBCaller, _cache);

            var result = service.GetFor("000");

            Assert.NotNull(result);

            Assert.Equal("5cb5fd22c892d7e5f291190a", result.Id);
            Assert.Equal("000", result.Asid);
            Assert.Equal("TestOrgCode", result.OdsCode);
        }
        public void SdsService_GetForOrgInteraction()
        {
            var service = new SdsService(_nrlsMongoDBCaller, _cache);

            var result = service.GetFor("TestOrgCode", "urn:nhs:names:services:nrl:DocumentReference.read");

            Assert.NotNull(result);

            Assert.Equal("5cb5fd22c892d7e5f291190a", result.Id);
            Assert.Equal("000", result.Asid);
            Assert.Equal("TestOrgCode", result.OdsCode);
        }