public void HasMultipleDefaultMapping_should_return_false()
 {
     var mappingResponse = new MappingResponse() { Mappings = new MdmIdList() };
     mappingResponse.Mappings.Add(new MdmId() { DefaultReverseInd = true });
     mappingResponse.Mappings.Add(new MdmId() { DefaultReverseInd = false });
     Assert.IsFalse(mappingResponse.HasMultipleDefaultMapping());
 }
 public void HasMultipleMappingsWithNoDefault_should_return_true()
 {
     var mappingResponse = new MappingResponse() { Mappings = new MdmIdList() };
     mappingResponse.Mappings.Add(new MdmId() { DefaultReverseInd = false });
     mappingResponse.Mappings.Add(new MdmId() { DefaultReverseInd = false });
     Assert.IsTrue(mappingResponse.HasMultipleMappingsWithNoDefault());
 }
        protected static void Because_of()
        {
            entity = BrokerData.CreateBasicEntityWithOneMapping();
            mapping = entity.Mappings[0];
            client = new HttpClient(ServiceUrl["Broker"] + string.Format("{0}/mapping/{1}", entity.Id, mapping.Id));

            response = client.Get();
            mappingResponse = response.Content.ReadAsDataContract<EnergyTrading.Mdm.Contracts.MappingResponse>();
        }
        protected static void Because_of()
        {
            entity = BrokerData.CreateEntityWithTwoDetailsAndTwoMappings();

            client = new HttpClient(ServiceUrl["Broker"] +
                "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<EnergyTrading.Mdm.Contracts.MappingResponse>();
        }
        protected static void Because_of()
        {
            entity = ExchangeData.CreateEntityWithTwoDetailsAndTwoMappings();

            client = new HttpClient(ServiceUrl["Exchange"] +
                "crossmap?source-system=trayport&destination-system=endur&mapping-string=" + entity.Mappings[0].MappingValue);

            response = client.Get();

            mappingResponse = response.Content.ReadAsDataContract<EnergyTrading.Mdm.Contracts.MappingResponse>();
        }