public void MapBOToModelList() { var mapper = new BOLDatabaseLogMapper(); BODatabaseLog bo = new BODatabaseLog(); bo.SetProperties(1, "A", "A", "A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A"); List <ApiDatabaseLogResponseModel> response = mapper.MapBOToModel(new List <BODatabaseLog>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLDatabaseLogMapper(); BODatabaseLog bo = new BODatabaseLog(); bo.SetProperties(1, "A", "A", "A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A"); ApiDatabaseLogResponseModel response = mapper.MapBOToModel(bo); 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"); }