public void MapEFToBOList() { var mapper = new DALClientCommunicationMapper(); ClientCommunication entity = new ClientCommunication(); entity.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, 1, "A"); List <BOClientCommunication> response = mapper.MapEFToBO(new List <ClientCommunication>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALClientCommunicationMapper(); ClientCommunication entity = new ClientCommunication(); entity.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, 1, "A"); BOClientCommunication response = mapper.MapEFToBO(entity); response.ClientId.Should().Be(1); response.DateCreated.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.EmployeeId.Should().Be(1); response.Id.Should().Be(1); response.Notes.Should().Be("A"); }