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); }
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); }
public static SERVICE.SecurityHeader AdditionalOperations(this SERVICE.SecurityHeader svcModel) { DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel); return(svcModel); }
public static SERVICE.GetPOELocationsForMoRequest AdditionalOperations(this SERVICE.GetPOELocationsForMoRequest svcModel) { DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel); return(svcModel); }
public static SERVICE.getPOSDeviceRequest1 AdditionalOperations(this SERVICE.getPOSDeviceRequest1 svcModel) { DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel); return(svcModel); }
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); }
public static SERVICE.GetAgentsDeviceNamesRequest AdditionalOperations(this SERVICE.GetAgentsDeviceNamesRequest svcModel) { DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel); return(svcModel); }
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); }
public static SERVICE.getAgentsRequest1 AdditionalOperations(this SERVICE.getAgentsRequest1 svcModel, DOMAIN.AgentsRequest domainModel) { DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel); ServiceTransformExtensions.ProcessSpecifiedDomainToService(svcModel, domainModel); return(svcModel); }
public static SERVICE.GetTransactionExceedInfoRequest AdditionalOperations(this SERVICE.GetTransactionExceedInfoRequest svcModel) { DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel); return(svcModel); }
public static SERVICE.ProcessingInstruction AdditionalOperations(this SERVICE.ProcessingInstruction svcModel) { DomainTransformExtensions.NullifyWhiteSpaceStrings(svcModel); return(svcModel); }
public static DOMAIN.LocationsForMoResponse AdditionalOperations(this DOMAIN.LocationsForMoResponse dmModel) { DomainTransformExtensions.NullifyWhiteSpaceStrings(dmModel); return(dmModel); }
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); }