public void MapEFToBOList() { var mapper = new DALDatabaseLogMapper(); DatabaseLog entity = new DatabaseLog(); entity.SetProperties(1, "A", "A", "A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A"); List <BODatabaseLog> response = mapper.MapEFToBO(new List <DatabaseLog>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALDatabaseLogMapper(); DatabaseLog entity = new DatabaseLog(); entity.SetProperties(1, "A", "A", "A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A"); BODatabaseLog response = mapper.MapEFToBO(entity); response.DatabaseLogID.Should().Be(1); response.DatabaseUser.Should().Be("A"); [email protected]().Be("A"); [email protected]().Be("A"); response.PostTime.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Schema.Should().Be("A"); response.Tsql.Should().Be("A"); response.XmlEvent.Should().Be("A"); }