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);
        }
예제 #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);
 }
예제 #4
0
 public static SERVICE.SecurityHeader AdditionalOperations(this SERVICE.SecurityHeader svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
예제 #5
0
 public static SERVICE.GetPOELocationsForMoRequest AdditionalOperations(this SERVICE.GetPOELocationsForMoRequest svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
예제 #6
0
 public static SERVICE.getPOSDeviceRequest1 AdditionalOperations(this SERVICE.getPOSDeviceRequest1 svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
예제 #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);
 }
예제 #9
0
 public static SERVICE.GetAgentsDeviceNamesRequest AdditionalOperations(this SERVICE.GetAgentsDeviceNamesRequest svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
예제 #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);
 }
예제 #12
0
 public static SERVICE.getAgentsRequest1 AdditionalOperations(this SERVICE.getAgentsRequest1 svcModel, DOMAIN.AgentsRequest domainModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     ServiceTransformExtensions.ProcessSpecifiedDomainToService(svcModel, domainModel);
     return(svcModel);
 }
예제 #13
0
 public static SERVICE.GetTransactionExceedInfoRequest AdditionalOperations(this SERVICE.GetTransactionExceedInfoRequest svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
예제 #14
0
 public static SERVICE.ProcessingInstruction AdditionalOperations(this SERVICE.ProcessingInstruction svcModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel);
     return(svcModel);
 }
예제 #15
0
 public static DOMAIN.LocationsForMoResponse AdditionalOperations(this DOMAIN.LocationsForMoResponse dmModel)
 {
     DomainTransformExtensions.NullifyWhiteSpaceStrings(dmModel);
     return(dmModel);
 }
예제 #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);
 }