public void MapBOToModelList() { var mapper = new BOLVariableSetMapper(); BOVariableSet bo = new BOVariableSet(); bo.SetProperties("A", true, "A", "A", "A", 1); List <ApiVariableSetResponseModel> response = mapper.MapBOToModel(new List <BOVariableSet>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLVariableSetMapper(); BOVariableSet bo = new BOVariableSet(); bo.SetProperties("A", true, "A", "A", "A", 1); ApiVariableSetResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be("A"); response.IsFrozen.Should().Be(true); response.JSON.Should().Be("A"); response.OwnerId.Should().Be("A"); response.RelatedDocumentIds.Should().Be("A"); response.Version.Should().Be(1); }