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