public void Can_resolve_geofence_service()
        {
            var objectFactory = new ObjectFactory();
            var geofenceService = objectFactory.Create<IGeofenceService>();

            Assert.That(geofenceService, Is.Not.Null);
        }
        public void Can_resolve_startup_manager()
        {
            var objectFactory = new ObjectFactory();
            var manager = objectFactory.Create<IStartupManager>();

            Assert.That(manager, Is.Not.Null);
        }
Beispiel #3
0
 public override object Deserialize(JToken result)
 {
     return(ObjectFactory.Create <ListResponse <VarPartnerUsageItem> >(result));
 }
Beispiel #4
0
 public override object Deserialize(JToken result)
 {
     return(ObjectFactory.Create <LiveChannel>(result));
 }
Beispiel #5
0
 public BaseEntry(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = node["id"].Value <string>();
     }
     if (node["name"] != null)
     {
         this._Name = node["name"].Value <string>();
     }
     if (node["description"] != null)
     {
         this._Description = node["description"].Value <string>();
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].Value <string>());
     }
     if (node["userId"] != null)
     {
         this._UserId = node["userId"].Value <string>();
     }
     if (node["creatorId"] != null)
     {
         this._CreatorId = node["creatorId"].Value <string>();
     }
     if (node["tags"] != null)
     {
         this._Tags = node["tags"].Value <string>();
     }
     if (node["adminTags"] != null)
     {
         this._AdminTags = node["adminTags"].Value <string>();
     }
     if (node["categories"] != null)
     {
         this._Categories = node["categories"].Value <string>();
     }
     if (node["categoriesIds"] != null)
     {
         this._CategoriesIds = node["categoriesIds"].Value <string>();
     }
     if (node["status"] != null)
     {
         this._Status = (EntryStatus)StringEnum.Parse(typeof(EntryStatus), node["status"].Value <string>());
     }
     if (node["moderationStatus"] != null)
     {
         this._ModerationStatus = (EntryModerationStatus)ParseEnum(typeof(EntryModerationStatus), node["moderationStatus"].Value <string>());
     }
     if (node["moderationCount"] != null)
     {
         this._ModerationCount = ParseInt(node["moderationCount"].Value <string>());
     }
     if (node["type"] != null)
     {
         this._Type = (EntryType)StringEnum.Parse(typeof(EntryType), node["type"].Value <string>());
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["rank"] != null)
     {
         this._Rank = ParseFloat(node["rank"].Value <string>());
     }
     if (node["totalRank"] != null)
     {
         this._TotalRank = ParseInt(node["totalRank"].Value <string>());
     }
     if (node["votes"] != null)
     {
         this._Votes = ParseInt(node["votes"].Value <string>());
     }
     if (node["groupId"] != null)
     {
         this._GroupId = ParseInt(node["groupId"].Value <string>());
     }
     if (node["partnerData"] != null)
     {
         this._PartnerData = node["partnerData"].Value <string>();
     }
     if (node["downloadUrl"] != null)
     {
         this._DownloadUrl = node["downloadUrl"].Value <string>();
     }
     if (node["searchText"] != null)
     {
         this._SearchText = node["searchText"].Value <string>();
     }
     if (node["licenseType"] != null)
     {
         this._LicenseType = (LicenseType)ParseEnum(typeof(LicenseType), node["licenseType"].Value <string>());
     }
     if (node["version"] != null)
     {
         this._Version = ParseInt(node["version"].Value <string>());
     }
     if (node["thumbnailUrl"] != null)
     {
         this._ThumbnailUrl = node["thumbnailUrl"].Value <string>();
     }
     if (node["accessControlId"] != null)
     {
         this._AccessControlId = ParseInt(node["accessControlId"].Value <string>());
     }
     if (node["startDate"] != null)
     {
         this._StartDate = ParseInt(node["startDate"].Value <string>());
     }
     if (node["endDate"] != null)
     {
         this._EndDate = ParseInt(node["endDate"].Value <string>());
     }
     if (node["referenceId"] != null)
     {
         this._ReferenceId = node["referenceId"].Value <string>();
     }
     if (node["replacingEntryId"] != null)
     {
         this._ReplacingEntryId = node["replacingEntryId"].Value <string>();
     }
     if (node["replacedEntryId"] != null)
     {
         this._ReplacedEntryId = node["replacedEntryId"].Value <string>();
     }
     if (node["replacementStatus"] != null)
     {
         this._ReplacementStatus = (EntryReplacementStatus)StringEnum.Parse(typeof(EntryReplacementStatus), node["replacementStatus"].Value <string>());
     }
     if (node["partnerSortValue"] != null)
     {
         this._PartnerSortValue = ParseInt(node["partnerSortValue"].Value <string>());
     }
     if (node["conversionProfileId"] != null)
     {
         this._ConversionProfileId = ParseInt(node["conversionProfileId"].Value <string>());
     }
     if (node["redirectEntryId"] != null)
     {
         this._RedirectEntryId = node["redirectEntryId"].Value <string>();
     }
     if (node["rootEntryId"] != null)
     {
         this._RootEntryId = node["rootEntryId"].Value <string>();
     }
     if (node["parentEntryId"] != null)
     {
         this._ParentEntryId = node["parentEntryId"].Value <string>();
     }
     if (node["operationAttributes"] != null)
     {
         this._OperationAttributes = new List <OperationAttributes>();
         foreach (var arrayNode in node["operationAttributes"].Children())
         {
             this._OperationAttributes.Add(ObjectFactory.Create <OperationAttributes>(arrayNode));
         }
     }
     if (node["entitledUsersEdit"] != null)
     {
         this._EntitledUsersEdit = node["entitledUsersEdit"].Value <string>();
     }
     if (node["entitledUsersPublish"] != null)
     {
         this._EntitledUsersPublish = node["entitledUsersPublish"].Value <string>();
     }
     if (node["entitledUsersView"] != null)
     {
         this._EntitledUsersView = node["entitledUsersView"].Value <string>();
     }
     if (node["capabilities"] != null)
     {
         this._Capabilities = node["capabilities"].Value <string>();
     }
     if (node["templateEntryId"] != null)
     {
         this._TemplateEntryId = node["templateEntryId"].Value <string>();
     }
     if (node["displayInSearch"] != null)
     {
         this._DisplayInSearch = (EntryDisplayInSearchType)ParseEnum(typeof(EntryDisplayInSearchType), node["displayInSearch"].Value <string>());
     }
     if (node["application"] != null)
     {
         this._Application = (EntryApplication)StringEnum.Parse(typeof(EntryApplication), node["application"].Value <string>());
     }
     if (node["applicationVersion"] != null)
     {
         this._ApplicationVersion = node["applicationVersion"].Value <string>();
     }
     if (node["blockAutoTranscript"] != null)
     {
         this._BlockAutoTranscript = ParseBool(node["blockAutoTranscript"].Value <string>());
     }
 }
Beispiel #6
0
 public override object Deserialize(JToken result)
 {
     return(ObjectFactory.Create <ListResponse <Tag> >(result));
 }