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