public void MapEFToBO() { var mapper = new DALTicketStatuMapper(); TicketStatu entity = new TicketStatu(); entity.SetProperties(1, "A"); BOTicketStatu response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALTicketStatuMapper(); var bo = new BOTicketStatu(); bo.SetProperties(1, "A"); TicketStatu response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapEFToBOList() { var mapper = new DALTicketStatuMapper(); TicketStatu entity = new TicketStatu(); entity.SetProperties(1, "A"); List <BOTicketStatu> response = mapper.MapEFToBO(new List <TicketStatu>() { entity }); response.Count.Should().Be(1); }