public void MapEFToBOList() { var mapper = new DALVoteMapper(); Vote entity = new Vote(); entity.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, 1, 1, 1); List <BOVote> response = mapper.MapEFToBO(new List <Vote>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALVoteMapper(); Vote entity = new Vote(); entity.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, 1, 1, 1); BOVote response = mapper.MapEFToBO(entity); response.BountyAmount.Should().Be(1); response.CreationDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Id.Should().Be(1); response.PostId.Should().Be(1); response.UserId.Should().Be(1); response.VoteTypeId.Should().Be(1); }