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