protected static void Because_of()
        {
            entity = CurveData.CreateEntityWithTwoDetailsAndTwoMappings();

            client = new HttpClient(ServiceUrl["Curve"] +
                                    "crossmap?source-system=trayport&destination-system=endur&mapping-string=" + entity.Mappings[0].MappingValue
                                    + "&as-of=" + entity.Mappings[0].Validity.Start.ToString(DateFormatString));

            response        = client.Get();
            mappingResponse = response.Content.ReadAsDataContract <Contracts.MappingResponse>();
        }
示例#2
0
 protected static void Establish_context()
 {
     curve = CurveData.CreateEntityWithTwoDetailsAndTwoMappings();
 }