public void MapBOToModel() { var mapper = new BOLHandlerMapper(); BOHandler bo = new BOHandler(); bo.SetProperties(1, 1, "A", "A", "A", "A"); ApiHandlerResponseModel response = mapper.MapBOToModel(bo); response.CountryId.Should().Be(1); response.Email.Should().Be("A"); response.FirstName.Should().Be("A"); response.Id.Should().Be(1); response.LastName.Should().Be("A"); response.Phone.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALHandlerMapper(); var bo = new BOHandler(); bo.SetProperties(1, 1, "A", "A", "A", "A"); Handler response = mapper.MapBOToEF(bo); response.CountryId.Should().Be(1); response.Email.Should().Be("A"); response.FirstName.Should().Be("A"); response.Id.Should().Be(1); response.LastName.Should().Be("A"); response.Phone.Should().Be("A"); }