public void MapEFToBOList() { var mapper = new DALFamilyMapper(); Family entity = new Family(); entity.SetProperties(1, "A", "A", "A", "A", "A", 1); List <BOFamily> response = mapper.MapEFToBO(new List <Family>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALFamilyMapper(); Family entity = new Family(); entity.SetProperties(1, "A", "A", "A", "A", "A"); BOFamily response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Note.Should().Be("A"); response.PrimaryContactEmail.Should().Be("A"); response.PrimaryContactFirstName.Should().Be("A"); response.PrimaryContactLastName.Should().Be("A"); response.PrimaryContactPhone.Should().Be("A"); }
public void MapEFToBO() { var mapper = new DALFamilyMapper(); Family entity = new Family(); entity.SetProperties(1, "A", "A", "A", "A", "A", 1); BOFamily response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Notes.Should().Be("A"); response.PcEmail.Should().Be("A"); response.PcFirstName.Should().Be("A"); response.PcLastName.Should().Be("A"); response.PcPhone.Should().Be("A"); response.StudioId.Should().Be(1); }