Пример #1
0
        public TFSSettingViewModel(ITFSSettingView view, IUriHelpView uriHelpView)
            : base(view)
        {
            if (uriHelpView == null)
            {
                throw new ArgumentNullException("uriHelpView");
            }

            this.uriHelpView = uriHelpView;

            this.uriHelpCommand = new DelegateCommand(OpenUriHelpCommandExcute);

            this.propertyMappingCollection = new PropertyMappingDictionary();
            this.tfsFields       = new ObservableCollection <TFSField>();
            this.bugFilterFields = new ObservableCollection <TFSField>();
            this.priorityValues  = new ObservableCollection <CheckString>();

            PropertyDescriptorCollection propertyDescriptorCollection = TypeDescriptor.GetProperties(typeof(Bug));

            foreach (PropertyDescriptor propertyDescriptor in propertyDescriptorCollection)
            {
                if (propertyDescriptor.Name == "Type")
                {
                    continue;
                }

                var mapping = new MappingModel(propertyDescriptor.Name);
                this.propertyMappingCollection.Add(mapping);

                AddWeakEventListener(mapping, PropertyMappingModelPropertyChanged);
            }

            ClearMappingData();
        }
Пример #2
0
        public void GetBugsTest()
        {
            var propertyMappingCollection = new PropertyMappingDictionary();
            propertyMappingCollection.Add("ID", "ID");
            propertyMappingCollection.Add("Title", "Title");
            propertyMappingCollection.Add("Description", "Description");
            propertyMappingCollection.Add("AssignedTo", "Assigned To");
            propertyMappingCollection.Add("State", "State");
            propertyMappingCollection.Add("ChangedDate", "Changed Date");
            propertyMappingCollection.Add("CreatedBy", "Created By");
            propertyMappingCollection.Add("Priority", "Code Studio Rank");
            propertyMappingCollection.Add("Severity", string.Empty);

            var bugs = this.tfsHelper.GetBugs(
                tpc, "BigEgg_cp", true, propertyMappingCollection, "Work Item Type", "Work Item", new List<string>());
            Assert.IsNotNull(bugs);
            Assert.IsTrue(bugs.Any());
        }
Пример #3
0
        public SettingDocument()
        {
            this.propertyMappingCollection = new PropertyMappingDictionary();

            PropertyDescriptorCollection propertyDescriptorCollection = TypeDescriptor.GetProperties(typeof(Bug));
            foreach (PropertyDescriptor propertyDescriptor in propertyDescriptorCollection)
            {
                if (propertyDescriptor.Name == "Type") continue;

                this.propertyMappingCollection.Add(propertyDescriptor.Name, string.Empty);
            }

            UserName = string.Empty;
            Password = string.Empty;
            BugFilterField = string.Empty;
            BugFilterValue = string.Empty;
            PriorityRed = string.Empty;
        }
Пример #4
0
        public void GetBugsTest()
        {
            var propertyMappingCollection = new PropertyMappingDictionary();

            propertyMappingCollection.Add("ID", "ID");
            propertyMappingCollection.Add("Title", "Title");
            propertyMappingCollection.Add("Description", "Description");
            propertyMappingCollection.Add("AssignedTo", "Assigned To");
            propertyMappingCollection.Add("State", "State");
            propertyMappingCollection.Add("ChangedDate", "Changed Date");
            propertyMappingCollection.Add("CreatedBy", "Created By");
            propertyMappingCollection.Add("Priority", "Code Studio Rank");
            propertyMappingCollection.Add("Severity", string.Empty);

            var bugs = this.tfsHelper.GetBugs(
                tpc, "BigEgg_cp", true, propertyMappingCollection, "Work Item Type", "Work Item", new List <string>());

            Assert.IsNotNull(bugs);
            Assert.IsTrue(bugs.Any());
        }
Пример #5
0
        public SettingDocument()
        {
            this.propertyMappingCollection = new PropertyMappingDictionary();

            PropertyDescriptorCollection propertyDescriptorCollection = TypeDescriptor.GetProperties(typeof(Bug));

            foreach (PropertyDescriptor propertyDescriptor in propertyDescriptorCollection)
            {
                if (propertyDescriptor.Name == "Type")
                {
                    continue;
                }

                this.propertyMappingCollection.Add(propertyDescriptor.Name, string.Empty);
            }

            UserName       = string.Empty;
            Password       = string.Empty;
            BugFilterField = string.Empty;
            BugFilterValue = string.Empty;
            PriorityRed    = string.Empty;
        }
 public LoggingInterfaceMethodBehavior(ILogMethodInvocation logMethodInvocation, PropertyMappingDictionary propertyMappingDictionary, Type actualInterceptedType)
     : base(logMethodInvocation, propertyMappingDictionary)
 {
     _actualInterceptedType = actualInterceptedType;
 }
        public LoggingVirtualMethodBehavior(ILogMethodInvocation logMethodInvocation, PropertyMappingDictionary propertyMappingDictionary)
            : base(logMethodInvocation, propertyMappingDictionary)
		{
		}
 public FakeLoggingInterceptionBehavior(ILogMethodInvocation logMethodInvocation, PropertyMappingDictionary propertyMappingDictionary)
     : base(logMethodInvocation, propertyMappingDictionary)
 {
 }
 protected LoggingInterceptionBehavior(ILogMethodInvocation logMethodInvocation, PropertyMappingDictionary propertyMappingDictionary)
 {
     _logMethodInvocation = logMethodInvocation;
     _propertyMappingDictionary = propertyMappingDictionary;
 }