internal Entitlement(EntitlementApi api, ISession session, string ns, CoroutineRunner coroutineRunner) { Assert.IsNotNull(api, "api parameter can not be null."); Assert.IsNotNull(session, "session parameter can not be null"); Assert.IsFalse(string.IsNullOrEmpty(ns), "ns paramater couldn't be empty"); Assert.IsNotNull(coroutineRunner, "coroutineRunner parameter can not be null. Construction failed"); this.api = api; this.session = session; this.@namespace = ns; this.coroutineRunner = coroutineRunner; }
internal Entitlements(string @namespace, EntitlementApi api, User user, AsyncTaskDispatcher taskDispatcher, CoroutineRunner coroutineRunner) { Assert.IsNotNull(api, "Can't construct Entitlement! api is null!"); Assert.IsNotNull(@namespace, "Can't construct Entitlement! namespace parameter is null!"); Assert.IsNotNull(user, "Can't construct Entitlement! user parameter is null!"); Assert.IsNotNull(taskDispatcher, "taskDispatcher must not be null"); Assert.IsNotNull(coroutineRunner, "coroutineRunner must not be null"); this.api = api; this.@namespace = @namespace; this.user = user; this.taskDispatcher = taskDispatcher; this.coroutineRunner = coroutineRunner; }