public void MapBOToEF() { var mapper = new DALFamilyMapper(); var bo = new BOFamily(); bo.SetProperties(1, "A", "A", "A", "A", "A"); Family response = mapper.MapBOToEF(bo); 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 MapBOToEF() { var mapper = new DALFamilyMapper(); var bo = new BOFamily(); bo.SetProperties(1, "A", "A", "A", "A", "A", 1); Family response = mapper.MapBOToEF(bo); 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); }