public void MapEFToBOList() { var mapper = new DALBadgeMapper(); Badge entity = new Badge(); entity.SetProperties(DateTime.Parse("1/1/1987 12:00:00 AM"), 1, "A", 1); List <BOBadge> response = mapper.MapEFToBO(new List <Badge>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALBadgeMapper(); Badge entity = new Badge(); entity.SetProperties(DateTime.Parse("1/1/1987 12:00:00 AM"), 1, "A", 1); BOBadge response = mapper.MapEFToBO(entity); response.Date.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Id.Should().Be(1); response.Name.Should().Be("A"); response.UserId.Should().Be(1); }