public void NullifyWhiteSpaceStringsTest()
        {
            var testModel = new ServiceObject(" ", 1, new List <string>(), "    ", " ", 5);
            var excluded  = new List <string>();

            excluded.Add("TelePhoneNumber");
            DomainTransformExtensions.NullifyWhiteSpaceStrings(testModel, excluded);

            Assert.IsTrue(testModel.Name == null, "");
            Assert.IsTrue(testModel.FullName == null, "");
            Assert.IsTrue(testModel.TelePhoneNumber != null);
            // Testing recursiveness
            Assert.IsTrue(testModel.Person.FirstName != null);
            Assert.IsTrue(testModel.Person.LastName == null);
        }
Ejemplo n.º 2
0
 public static SERVICE.DailyTransactionDetailLookupRequest AdditionalOperations(this SERVICE.DailyTransactionDetailLookupRequest svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
 public static DOMAIN.MTTransactionDetailLookupResponse AdditionalOperations(this DOMAIN.MTTransactionDetailLookupResponse dmModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(dmModel);
     return(dmModel);
 }
Ejemplo n.º 4
0
 public static SERVICE.SecurityHeader AdditionalOperations(this SERVICE.SecurityHeader svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
Ejemplo n.º 5
0
 public static SERVICE.GetPOELocationsForMoRequest AdditionalOperations(this SERVICE.GetPOELocationsForMoRequest svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
Ejemplo n.º 6
0
 public static SERVICE.getPOSDeviceRequest1 AdditionalOperations(this SERVICE.getPOSDeviceRequest1 svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
Ejemplo n.º 7
0
 public static DOMAIN.AgentPosDevice AdditionalOperations(this DOMAIN.AgentPosDevice dmModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(dmModel);
     return(dmModel);
 }
 public static DOMAIN.ProcessingInstruction AdditionalOperations(this DOMAIN.ProcessingInstruction dmModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(dmModel);
     return(dmModel);
 }
Ejemplo n.º 9
0
 public static SERVICE.GetAgentsDeviceNamesRequest AdditionalOperations(this SERVICE.GetAgentsDeviceNamesRequest svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
Ejemplo n.º 10
0
 public static SERVICE.AgentPosDevice AdditionalOperations(this SERVICE.AgentPosDevice svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
 public static DOMAIN.TransactionExceedReportsInfo AdditionalOperations(this DOMAIN.TransactionExceedReportsInfo dmModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(dmModel);
     return(dmModel);
 }
Ejemplo n.º 12
0
 public static SERVICE.getAgentsRequest1 AdditionalOperations(this SERVICE.getAgentsRequest1 svcModel, DOMAIN.AgentsRequest domainModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     ServiceTransformExtensions.ProcessSpecifiedDomainToService(svcModel, domainModel);
     return(svcModel);
 }
Ejemplo n.º 13
0
 public static SERVICE.GetTransactionExceedInfoRequest AdditionalOperations(this SERVICE.GetTransactionExceedInfoRequest svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
Ejemplo n.º 14
0
 public static SERVICE.ProcessingInstruction AdditionalOperations(this SERVICE.ProcessingInstruction svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
Ejemplo n.º 15
0
 public static DOMAIN.LocationsForMoResponse AdditionalOperations(this DOMAIN.LocationsForMoResponse dmModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(dmModel);
     return(dmModel);
 }
Ejemplo n.º 16
0
 public static DOMAIN.RoutingContextHeader AdditionalOperations(this DOMAIN.RoutingContextHeader dmModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(dmModel);
     return(dmModel);
 }
 public static DOMAIN.UserReportsInfoResponseList AdditionalOperations(this DOMAIN.UserReportsInfoResponseList dmModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(dmModel);
     return(dmModel);
 }