Exemplo n.º 1
0
        protected BaseChannelProcessor(ChannelContract channel)
        {
            Channel    = channel;
            Attributes = new AttributesReader(Channel.Attributes).Read();

            StemmerBase stemmer = new RussianStemmer();

            foreach (string s in Channel.Tags.Split(';'))
            {
                _tags.Add(stemmer.Stem(s.Trim()));
            }
        }
Exemplo n.º 2
0
        /* end */

        void Start()
        {
            once            = true;
            _locations      = new Vector2d[_locationStrings.Length];
            _spawnedObjects = new List <GameObject>();
            for (int i = 0; i < _locationStrings.Length; i++)
            {
                var locationString = _locationStrings[i];
                _locations[i] = Conversions.StringToLatLon(locationString);
                var instance = Instantiate(_markerPrefab);
                instance.transform.localPosition = _map.GeoToWorldPosition(_locations[i], true);

                _spawnedObjects.Add(instance);
            }

            /*Loupas Code Starts Here*/
            s1 = GetComponent <AttributesReader>();



            /*Loupas Code Ends Here*/
        }
Exemplo n.º 3
0
        public void GetServiceContract_no_null()
        {
            var attr = AttributesReader.GetServiceContract(typeof(INotService));

            Assert.IsNull(attr);
        }
Exemplo n.º 4
0
        public void IsOperationContract_wcfYes_true()
        {
            var isOp = AttributesReader.IsOperationContract(typeof(IWcfSimpleService).GetMethods().First());

            Assert.IsTrue(isOp);
        }
Exemplo n.º 5
0
        public void IsOperationContract_no_false()
        {
            var isOp = AttributesReader.IsOperationContract(typeof(INoOperationsService).GetMethods().First());

            Assert.IsFalse(isOp);
        }
Exemplo n.º 6
0
        public void GetOperationContract_no_null()
        {
            var attr = AttributesReader.GetOperationContract(typeof(INoOperationsService).GetMethods().First());

            Assert.IsNull(attr);
        }
Exemplo n.º 7
0
        public void GetServiceContract_custom_custom()
        {
            var attr = AttributesReader.GetServiceContract(typeof(ISimpleService));

            Assert.IsNotNull(attr);
        }
Exemplo n.º 8
0
        public void GetOperationContract_custom_custom()
        {
            var attr = AttributesReader.GetOperationContract(typeof(ISimpleService).GetMethods().First());

            Assert.IsNotNull(attr);
        }