public void SetUp()
        {
            dto = new FixtureDto()
            {
                Fullname = "the full name",
                Name = "Math",
                Namespace = "some namespace"
            };

            selector = new FixtureSelector(dto);
        }
Example #2
0
 public bool Equals(FixtureDto other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Name, Name) && Equals(other.Namespace, Namespace) && Equals(other.Fullname, Fullname));
 }
Example #3
0
        public FixtureSelector(FixtureDto dto)
        {
            _dto = dto;

            Height = 25;
            this.Horizontal();
            _checkbox = this.Add<CheckBox>();
            _checkbox.Padding = new Thickness(0, 5, 0, 0);
            _checkbox.VerticalAlignment = VerticalAlignment.Center;

            this.Add<System.Windows.Controls.Label>(l =>
            {
                l.Content = dto.Name;
                l.VerticalAlignment = VerticalAlignment.Top;
            });

            ToolTip = new ToolTip() {Content = dto.Fullname};
        }
 public bool Equals(FixtureDto other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Name, Name) && Equals(other.Namespace, Namespace) && Equals(other.Fullname, Fullname);
 }