public void MapBOToModelList() { var mapper = new BOLLibraryVariableSetMapper(); BOLibraryVariableSet bo = new BOLibraryVariableSet(); bo.SetProperties("A", "A", "A", "A", "A"); List <ApiLibraryVariableSetResponseModel> response = mapper.MapBOToModel(new List <BOLibraryVariableSet>() { { bo } }); response.Count.Should().Be(1); }
public void MapModelToBO() { var mapper = new BOLLibraryVariableSetMapper(); ApiLibraryVariableSetRequestModel model = new ApiLibraryVariableSetRequestModel(); model.SetProperties("A", "A", "A", "A"); BOLibraryVariableSet response = mapper.MapModelToBO("A", model); response.ContentType.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); response.VariableSetId.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLLibraryVariableSetMapper(); BOLibraryVariableSet bo = new BOLibraryVariableSet(); bo.SetProperties("A", "A", "A", "A", "A"); ApiLibraryVariableSetResponseModel response = mapper.MapBOToModel(bo); response.ContentType.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); response.VariableSetId.Should().Be("A"); }
public void MapEFToBO() { var mapper = new DALLibraryVariableSetMapper(); LibraryVariableSet entity = new LibraryVariableSet(); entity.SetProperties("A", "A", "A", "A", "A"); BOLibraryVariableSet response = mapper.MapEFToBO(entity); response.ContentType.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); response.VariableSetId.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALLibraryVariableSetMapper(); var bo = new BOLibraryVariableSet(); bo.SetProperties("A", "A", "A", "A", "A"); LibraryVariableSet response = mapper.MapBOToEF(bo); response.ContentType.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); response.VariableSetId.Should().Be("A"); }