public void MapEFToBOList() { var mapper = new DALPasswordMapper(); Password entity = new Password(); entity.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A", Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da")); List <BOPassword> response = mapper.MapEFToBO(new List <Password>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALPasswordMapper(); Password entity = new Password(); entity.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A", Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da")); BOPassword response = mapper.MapEFToBO(entity); response.BusinessEntityID.Should().Be(1); response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.PasswordHash.Should().Be("A"); response.PasswordSalt.Should().Be("A"); response.Rowguid.Should().Be(Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da")); }