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; }
private bool Equals(BTest other) { return(Name == other.Name && Description == other.Description); }