public CollectionDescription ConvertToCD(HistoricalCollection historicalCollection) { HistoricalCollection collection = new HistoricalCollection(); for (int i = 0; i < 2; i++) { collection.ReceiverPropertyArray.Add(historicalCollection.ReceiverPropertyArray[i]); } return(new CollectionDescription(++dataCDCounter, GetDataSet.GetDatasetForCode(collection.ReceiverPropertyArray[0].Code, collection.ReceiverPropertyArray[1].Code), collection)); }
public void GetDataSetTest_GivenInValidCodes_ReturnsDataSetForInValidGivenCodes(Code code1, Code code2) { var result = GetDataSet.GetDatasetForCode(code1, code2); Assert.IsTrue(result == 0); }