public AddRatingCommand(string uniqueKey, uint rating, string customParams, AuthorisationContext authorisationContext) : base(authorisationContext) { this.uniqueKey = uniqueKey; this.rating = rating; this.customParams = customParams; }
protected WithAuthorisationContext(AuthorisationContext authorisationContext) { if (authorisationContext == null) throw new ArgumentNullException("authorisationContext", "AuthorisationContext context cannot be null."); this.authorisationContext = authorisationContext; }
public GetAllRatingsQuery(AuthorisationContext authorisationContext) : base(authorisationContext) { }
public GetRatingsCustomParamQuery(AuthorisationContext authorisationContext, string customParam, string customQuery) : base(authorisationContext) { this.customParam = customParam; this.customQuery = customQuery; }
public GetRatingsBetweenRatingQuery(AuthorisationContext authorisationContext, int minRating, int maxRating) : base(authorisationContext) { this.minRating = minRating; this.maxRating = maxRating; }
public DeleteRatingCommand(AuthorisationContext authorisationContext, string uniqueKey) : base(authorisationContext) { this.uniqueKey = uniqueKey; }
public GetRatingUniqueKeyQuery(AuthorisationContext authorisationContext, string uniqueKey) : base(authorisationContext) { this.uniqueKey = uniqueKey; }
private dynamic GetUserAccount(AuthorisationContext authorisationContext) { var authorisation = authorisationService.GetAuthorsation(new GetAuthorisationQuery(authorisationContext)); return accountService.GetUserAccount(new GetUserAccountQuery(authorisation.UserAccountId)); }
public GetAuthorisationQuery(AuthorisationContext authorisationContext) { this.authorisationContext = authorisationContext; }