Example #1
0
        public BTest(Test test)
        {
            var    config   = new MapperConfiguration(cfg => cfg.CreateMap <Test, BTest>());
            Mapper mapper   = new Mapper(config);
            BTest  tmpBTest = mapper.Map <BTest>(test);

            this.Name        = tmpBTest.Name;
            this.Description = tmpBTest.Description;
        }
Example #2
0
 private bool Equals(BTest other)
 {
     return(Name == other.Name &&
            Description == other.Description);
 }