コード例 #1
0
            public void DoesNotSendApplicationInstallLocationOnIOs(ApplicationInstallLocation installLocation)
            {
                PlatformInfo.InstallLocation.Returns(installLocation);
                PlatformInfo.Platform.Returns(Platform.Daneel);

                executeInteractor().Wait();

                feedbackApi.DidNotReceive().Send(Arg.Any <Email>(), Arg.Any <string>(), Arg.Is <Dictionary <string, string> >(
                                                     data => data[InstallLocation] == installLocation.ToString())).Wait();
            }
コード例 #2
0
            public void SendsApplicationInstallLocation(ApplicationInstallLocation installLocation)
            {
                PlatformInfo.InstallLocation.Returns(installLocation);
                PlatformInfo.Platform.Returns(Platform.Giskard);

                executeInteractor().Wait();

                feedbackApi.Received().Send(Arg.Any <Email>(), Arg.Any <string>(), Arg.Is <Dictionary <string, string> >(
                                                data => data[InstallLocation] == installLocation.ToString())).Wait();
            }
コード例 #3
0
                public async void TracksApplicationInstallLocation(ApplicationInstallLocation location, Platform platform, bool shouldTrack)
                {
                    PlatformInfo.InstallLocation.Returns(location);
                    PlatformInfo.Platform.Returns(platform);

                    await ViewModel.Initialize();

                    TestScheduler.Start();

                    if (shouldTrack)
                    {
                        AnalyticsService.ApplicationInstallLocation.Received().Track(location);
                    }
                    else
                    {
                        AnalyticsService.ApplicationInstallLocation.DidNotReceive().Track(location);
                    }
                }