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())); } }
/* 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*/ }
public void GetServiceContract_no_null() { var attr = AttributesReader.GetServiceContract(typeof(INotService)); Assert.IsNull(attr); }
public void IsOperationContract_wcfYes_true() { var isOp = AttributesReader.IsOperationContract(typeof(IWcfSimpleService).GetMethods().First()); Assert.IsTrue(isOp); }
public void IsOperationContract_no_false() { var isOp = AttributesReader.IsOperationContract(typeof(INoOperationsService).GetMethods().First()); Assert.IsFalse(isOp); }
public void GetOperationContract_no_null() { var attr = AttributesReader.GetOperationContract(typeof(INoOperationsService).GetMethods().First()); Assert.IsNull(attr); }
public void GetServiceContract_custom_custom() { var attr = AttributesReader.GetServiceContract(typeof(ISimpleService)); Assert.IsNotNull(attr); }
public void GetOperationContract_custom_custom() { var attr = AttributesReader.GetOperationContract(typeof(ISimpleService).GetMethods().First()); Assert.IsNotNull(attr); }