public bool VerifyAdditionResident() { try { Document doc = Application.DocumentManager.MdiActiveDocument; IReviewManager reviewer = CoreExtensionApplication._current.Container.GetRequiredService <IReviewManager>(); DataService data = DataService.Current; data.PopulateStoreTypes(); int startingItemCount = reviewer.GetUnverified(doc).Count(); TestDocumentStore testDocumentStore = data.GetStore <TestDocumentStore>(doc.Name); TestDrawingObjectManager objectManager = testDocumentStore.GetManager <TestDrawingObjectManager>(); objectManager.Add(TestDrawingObject.CreateActiveObject(Guid.NewGuid())); reviewer.Refresh(doc); int endItemCount = reviewer.GetUnverified(doc).Count(); int difference = (endItemCount - startingItemCount); return(difference == 1); } catch (Exception) { return(false); } }
public ReviewManagerTests() { _productRepositoryMock = new Mock <IProductRepository>(); _reviewRepositoryMock = new Mock <IReviewRepository>(); _fixture = new Fixture(); _reviewManager = new ReviewManager(_productRepositoryMock.Object, _reviewRepositoryMock.Object); }
public OnCompleteListener(Activity mainActivity, IReviewManager reviewManager) { try { MainActivity = mainActivity; ReviewManager = reviewManager; } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
public ReviewManagerTest() { reviewRepository = new StubReviewRepository(); productRepository = new StubProductRepository(); userRepository = new StubUserRepository(); reviewManager = new ReviewManager(reviewRepository, userRepository, productRepository); request = new ReviewRequest(); request.ProductId = PRODUCT_ID; request.Description = DESCRIPTION; request.Points = POINTS; request.UserId = USER_ID; }
public ReviewViewModel(IReviewManager review) { _manager = review; VerifyCommand = new Jpp.Common.DelegateCommand(() => { _manager.Verify(_currentDocument, _currentItems.ElementAt(CurrentItemIndex).Key); CurrentItemIndex++; }); SkipCommand = new Jpp.Common.DelegateCommand(() => { CurrentItemIndex++; }); }
public EWork(ITagManager tagManager, IJobManager jobManager, IUserExtractor userExtractor, IReviewManager reviewManager, IBalanceManager balanceManager, IProposalManager proposalManager, INotificationManager notificationManager ) { TagManager = tagManager; JobManager = jobManager; UserExtractor = userExtractor; ReviewManager = reviewManager; BalanceManager = balanceManager; ProposalManager = proposalManager; NotificationManager = notificationManager; }
/// <summary> /// Open Android in-app review popup of your current application. /// </summary> public async Task PerformInAppRateAsync() { inAppRateTCS?.TrySetCanceled(); inAppRateTCS = new TaskCompletionSource <bool>(); reviewManager = ReviewManagerFactory.Create(Application.Context); var request = reviewManager.RequestReviewFlow(); request.AddOnCompleteListener(this); await inAppRateTCS.Task; reviewManager.Dispose(); request.Dispose(); }
/// <summary> /// Requests an app review. /// </summary> public async Task RequestReview(bool testMode) { tcs?.TrySetCanceled(); tcs = new TaskCompletionSource <bool>(); if (testMode) { manager = new FakeReviewManager(Application.Context); } else { manager = ReviewManagerFactory.Create(Application.Context); } forceReturn = false; var request = manager.RequestReviewFlow(); request.AddOnCompleteListener(this); await tcs.Task; manager.Dispose(); request.Dispose(); }
public ReviewController(IReviewManager reviewManager, IMapper mapper) { _reviewManager = reviewManager; _mapper = mapper; }
public GameResultScore(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, PPDGameUtility ppdGameUtility, ISound sound, ITweetManager tweetManager, IReviewManager reviewManager, IGameHost gameHost) : base(device) { this.ppdGameUtility = ppdGameUtility; this.TweetManager = tweetManager; this.ReviewManager = reviewManager; this.Sound = sound; this.gameHost = gameHost; menuRanking = new MenuRanking(device, resourceManager) { Position = new Vector2(455, 100) }; td = new TweetDialog(device, resourceManager, sound, tweetManager); rd = new ReviewDialog(device, resourceManager, sound, reviewManager); this.AddChild(td); this.AddChild(rd); result = new EffectObject[6]; for (int i = 0; i < result.Length; i++) { int x = 220; int y = 74; var anim = new EffectObject(device, resourceManager, Utility.Path.Combine("result", String.Format("{0}.etd", ((ResultEvaluateType)i).ToString().ToLower()))) { Position = new Vector2(x, y) }; anim.PlayType = Effect2D.EffectManager.PlayType.ReverseLoop; anim.Play(); result[i] = anim; } string filename = ""; switch (ppdGameUtility.Difficulty) { case Difficulty.Easy: filename = "easy.png"; break; case Difficulty.Normal: filename = "normal.png"; break; case Difficulty.Hard: filename = "hard.png"; break; case Difficulty.Extreme: filename = "extreme.png"; break; default: filename = "normal.png"; break; } difficulty = new PictureObject(device, resourceManager, Utility.Path.Combine("result", filename)) { Position = new Vector2(45, 105) }; high = new EffectObject(device, resourceManager, Utility.Path.Combine("result", "high.etd")) { Position = new Vector2(-25, 300) }; high.PlayType = Effect2D.EffectManager.PlayType.Loop; high.Play(); high.Alignment = EffectObject.EffectAlignment.TopLeft; scoresmalls = new NumberPictureObject[6]; for (int i = 0; i < scoresmalls.Length; i++) { scoresmalls[i] = new NumberPictureObject(device, resourceManager, Utility.Path.Combine("result", "scoresmall.png")) { Position = new Vector2(scorex, scorey[i]), Alignment = Alignment.Right, MaxDigit = -1 }; } scorebig = new NumberPictureObject(device, resourceManager, Utility.Path.Combine("result", "scorebig.png")) { Position = new Vector2(scorex, scorey[6]), Alignment = Alignment.Right, MaxDigit = -1 }; scoreboard = new PictureObject(device, resourceManager, Utility.Path.Combine("result", "score.png")) { Position = new Vector2(18, 52) }; scoreboard.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("eva", "cool.png"), true) { Position = new Vector2(105, 108), Scale = new Vector2(0.75f, 0.75f) }); scoreboard.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("eva", "good.png"), true) { Position = new Vector2(105, 138), Scale = new Vector2(0.75f, 0.75f) }); scoreboard.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("eva", "safe.png"), true) { Position = new Vector2(105, 168), Scale = new Vector2(0.75f, 0.75f) }); scoreboard.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("eva", "sad.png"), true) { Position = new Vector2(105, 198), Scale = new Vector2(0.75f, 0.75f) }); scoreboard.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("eva", "worst.png"), true) { Position = new Vector2(105, 228), Scale = new Vector2(0.75f, 0.75f) }); scoreboard.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("eva", "combo.png"), true) { Position = new Vector2(105, 258), Scale = new Vector2(0.75f, 0.75f) }); top = new PictureObject(device, resourceManager, Utility.Path.Combine("result", "top.png")); top.AddChild(new TextureString(device, Utility.Language["Result"], 20, PPDColors.White) { Position = new Vector2(70, 2) }); bottom = new PictureObject(device, resourceManager, Utility.Path.Combine("result", "bottom.png")); bottom.AddChild(new TextureString(device, Utility.Language["Move"], 16, PPDColors.White) { Position = new Vector2(587, 21) }); bottom.AddChild(new TextureString(device, Utility.Language["Decide"], 16, PPDColors.White) { Position = new Vector2(708, 21) }); bottom.Position = new Vector2(0, 450 - bottom.Height + 1); black = new RectangleComponent(device, resourceManager, PPDColors.Black) { RectangleHeight = 450, RectangleWidth = 800 }; black.Alpha = 0; buttons = new Button[5]; for (int i = 0; i < buttons.Length; i++) { string text = ""; switch (i) { case 0: text = "TWEET"; break; case 1: text = "REVIEW"; break; case 2: text = "RETRY"; break; case 3: text = "REPLAY"; break; case 4: text = "RETURN"; break; } Vector2 pos; if (i >= 2) { pos = new Vector2(500 + ((i - 2) % 3) * 100, 380); } else { pos = new Vector2(500 + (i % 2) * 100, 340); } buttons[i] = new Button(device, resourceManager, Utility.Path, text) { Position = pos }; gridSelection.Add(pos); buttons[i].Selected = false; this.AddChild(buttons[i]); } gridSelection.Initialize(); songname = new TextureString(device, ppdGameUtility.SongInformation.DirectoryName, 20, 500, PPDColors.White) { Position = new Vector2(35, 4) }; songname.Position = new Vector2(790 - songname.JustWidth, songname.Position.Y); difficultstring = new TextureString(device, ppdGameUtility.DifficultString, 24, 200, PPDColors.White) { Position = new Vector2(35, 103), AllowScroll = true }; difficultstring.Position = new Vector2(400 - Math.Min(200, difficultstring.Width), difficultstring.Position.Y); bgd = new BackGroundDisplay(device, resourceManager, "skins\\PPDSingle_BackGround.xml", "Result"); Inputed += GameResultScore_Inputed; GotFocused += GameResultScore_GotFocused; this.AddChild(menuRanking); this.AddChild(high); this.AddChild(difficulty); for (int i = 0; i < result.Length; i++) { this.AddChild(result[i]); } for (int i = 0; i < scoresmalls.Length; i++) { this.AddChild(scoresmalls[i]); } this.AddChild(scorebig); this.AddChild(difficultstring); this.AddChild(scoreboard); this.AddChild(songname); this.AddChild(top); this.AddChild(bottom); this.AddChild(bgd); this.InsertChild(black, 0); }
public ReviewDialog(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, ISound sound, IReviewManager reviewManager) : base(device) { this.ReviewManager = reviewManager; reviewManager.ReviewFinished += reviewManager_ReviewFinished; this.Sound = sound; back = new EffectObject(device, resourceManager, Utility.Path.Combine("tweetconfirm.etd")) { Position = new Vector2(400, 225) }; rate = new TextureString(device, String.Format("{0}:", Utility.Language["Evaluate"]), 16, PPDColors.White) { Position = new Vector2(250, 130) }; content = new TextureString(device, String.Format("{0}:", Utility.Language["ReviewContent"]), 16, PPDColors.White) { Position = new Vector2(250, 160) }; review = new TextureString(device, "", 16, 300, 100, true, PPDColors.White) { Position = new Vector2(250, 190) }; processing = new TextureString(device, Utility.Language["Processing"], 16, PPDColors.White) { Position = new Vector2(400, 300) }; processing.Position = new Vector2(400 - processing.Width / 2, processing.Position.Y); black = new RectangleComponent(device, resourceManager, PPDColors.Black) { RectangleHeight = 450, RectangleWidth = 800 }; select = new EffectObject(device, resourceManager, Utility.Path.Combine("greenflare.etd")) { Position = new Vector2(235, 140), Scale = new Vector2(0.5f, 0.5f) }; select.PlayType = Effect2D.EffectManager.PlayType.ReverseLoop; select.Play(); buttons = new Button[2]; for (int i = 0; i < buttons.Length; i++) { string text = ""; switch (i) { case 0: text = Utility.Language["OK"]; break; case 1: text = Utility.Language["Cancel"]; break; } buttons[i] = new Button(device, resourceManager, Utility.Path, text) { Position = new Vector2(300 + i * 200, 315) }; buttons[i].Selected = false; buttons[i].Hidden = true; this.AddChild(buttons[i]); } stars = new StarObject[5]; for (int i = 0; i < stars.Length; i++) { stars[i] = new StarObject(device, resourceManager) { Position = new Vector2(420 + i * 30, 130) }; this.AddChild(stars[i]); } black.Alpha = 0; back.Hidden = true; processing.Hidden = true; hiddenList = new GameComponent[] { content, rate, buttons[0], buttons[1], stars[0], stars[1], stars[2], stars[3], stars[4], select, review }; foreach (GameComponent hidden in hiddenList) { hidden.Hidden = true; } GotFocused += ReviewDialog_GotFocused; LostFocused += ReviewDialog_LostFocused; Inputed += ReviewDialog_Inputed; this.AddChild(select); this.AddChild(content); this.AddChild(rate); this.AddChild(review); this.AddChild(processing); this.AddChild(back); this.AddChild(black); Rate = 3; }
public ReviewController(IReviewManager reviewManager, IMapper mapper, ILogger <ReviewController> logger) { _reviewManager = reviewManager; _mapper = mapper; _logger = logger; }
public ReviewService(IReviewManager reviewManager) { _reviewManager = reviewManager; }
public void Setup() { repository = new RecipeRepository(); manager = new ReviewManager(repository); }
public ReviewAppService(IReviewManager reviewManager) { _reviewManager = reviewManager; }
/// <summary> /// Constructor that implements IReviewManager /// </summary> public ReviewsController(IReviewManager context) { _context = context; }
public ReviewController(IReviewManager reviewManager) { _reviewManager = reviewManager; }
public OnCompleteListener(IReviewManager reviewManager) { _reviewManager = reviewManager; }
public ReivewController(ILogger <ReivewController> logger, IReviewManager reviewManager, IMapper mapper) { this._reviewManager = reviewManager; this._mapper = mapper; }
/// <summary> /// The constructor that is keeping all of the implementation /// </summary> /// <param name="context">from the database</param> /// <param name="reviewContext">from IReviewManger interface</param> /// <param name="tagContext">from ITagManager interface</param> public ActivityService(BoPeepDbContext context, IReviewManager reviewContext, ITagManager tagContext) { _context = context; _reviewContext = reviewContext; _tagContext = tagContext; }
public ReviewController(IReviewManager rm) { reviewManager = rm; }
public ReviewController(ILogger <ReviewController> logger, IReviewManager manager) { Manager = manager; _logger = logger; }
public ReviewServiceImpl(IReviewManager reviewManager, ICartManager cartManager, IDTOBuilder <ReviewDTO, Review> reviewDTOBuilder) { this.reviewManager = reviewManager; this.cartManager = cartManager; this.reviewDTOBuilder = reviewDTOBuilder; }
public ReviewsController(IReviewManager reviewMgr) { reviewManager = reviewMgr; }