public void MapBOToModelList() { var mapper = new BOLClientMapper(); BOClient bo = new BOClient(); bo.SetProperties(1, "A", "A", "A", "A", "A"); List <ApiClientResponseModel> response = mapper.MapBOToModel(new List <BOClient>() { { bo } }); response.Count.Should().Be(1); }
public void MapModelToBO() { var mapper = new BOLClientMapper(); ApiClientRequestModel model = new ApiClientRequestModel(); model.SetProperties("A", "A", "A", "A", "A"); BOClient response = mapper.MapModelToBO(1, model); response.Email.Should().Be("A"); response.FirstName.Should().Be("A"); response.LastName.Should().Be("A"); response.Note.Should().Be("A"); response.Phone.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLClientMapper(); BOClient bo = new BOClient(); bo.SetProperties(1, "A", "A", "A", "A", "A"); ApiClientResponseModel response = mapper.MapBOToModel(bo); response.Email.Should().Be("A"); response.FirstName.Should().Be("A"); response.Id.Should().Be(1); response.LastName.Should().Be("A"); response.Note.Should().Be("A"); response.Phone.Should().Be("A"); }
public void MapEFToBO() { var mapper = new DALClientMapper(); Client entity = new Client(); entity.SetProperties("A", "A", 1, "A", "A", "A"); BOClient response = mapper.MapEFToBO(entity); response.Email.Should().Be("A"); response.FirstName.Should().Be("A"); response.Id.Should().Be(1); response.LastName.Should().Be("A"); response.Note.Should().Be("A"); response.Phone.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALClientMapper(); var bo = new BOClient(); bo.SetProperties(1, "A", "A", "A", "A", "A"); Client response = mapper.MapBOToEF(bo); response.Email.Should().Be("A"); response.FirstName.Should().Be("A"); response.Id.Should().Be(1); response.LastName.Should().Be("A"); response.Note.Should().Be("A"); response.Phone.Should().Be("A"); }