public void MapEFToBO() { var mapper = new DALEventStatusMapper(); EventStatus entity = new EventStatus(); entity.SetProperties(1, "A"); BOEventStatus response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapEFToBOList() { var mapper = new DALEventStatusMapper(); EventStatus entity = new EventStatus(); entity.SetProperties(1, "A"); List <BOEventStatus> response = mapper.MapEFToBO(new List <EventStatus>() { entity }); response.Count.Should().Be(1); }