public BTeam(Team team) { var config = new MapperConfiguration(cfg => cfg.CreateMap <Team, BTeam>()); Mapper mapper = new Mapper(config); BTeam tmpBTeam = mapper.Map <BTeam>(team); this.Name = tmpBTeam.Name; this.From = tmpBTeam.From; this.To = tmpBTeam.To; }
private bool Equals(BTeam other) { return(Name == other.Name && From == other.From && To == other.To); }