private void CheckInputEntity()

in code/PublishToEmbeddedSocial/EmbeddedSocial/Route.cs [163:185]


        private void CheckInputEntity(RouteEntity route)
        {
            if (route == null)
            {
                throw new ArgumentNullException("route");
            }
            else if (string.IsNullOrWhiteSpace(route.Id))
            {
                throw new ArgumentException("route id is null or whitespace", "route");
            }
            else if (string.IsNullOrWhiteSpace(route.RegionId))
            {
                throw new ArgumentException("route region id is null or whitespace", "route");
            }
            else if (string.IsNullOrWhiteSpace(route.AgencyId))
            {
                throw new ArgumentException("route agency id is null or whitespace", "route");
            }
            else if (string.IsNullOrWhiteSpace(route.LongName) && string.IsNullOrWhiteSpace(route.ShortName))
            {
                throw new ArgumentException("route long name and short name are both null or whitespace", "route");
            }
        }