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(); }
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(); }
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); } }