public void MapEFToBO() { var mapper = new DALMachineRefTeamMapper(); MachineRefTeam entity = new MachineRefTeam(); entity.SetProperties(1, 1, 1); BOMachineRefTeam response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.MachineId.Should().Be(1); response.TeamId.Should().Be(1); }
public void MapBOToEF() { var mapper = new DALMachineRefTeamMapper(); var bo = new BOMachineRefTeam(); bo.SetProperties(1, 1, 1); MachineRefTeam response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.MachineId.Should().Be(1); response.TeamId.Should().Be(1); }
public void MapEFToBOList() { var mapper = new DALMachineRefTeamMapper(); MachineRefTeam entity = new MachineRefTeam(); entity.SetProperties(1, 1, 1); List <BOMachineRefTeam> response = mapper.MapEFToBO(new List <MachineRefTeam>() { entity }); response.Count.Should().Be(1); }