Beispiel #1
0
 public override Task <bool> CloseWithDefaultResult()
 {
     analyticsEvent = analyticsEvent.With(result: EditDurationEvent.Result.Cancel);
     analyticsService.Track(analyticsEvent);
     Close(defaultResult);
     return(Task.FromResult(true));
 }
Beispiel #2
0
        public void SetsParametersUsingWith()
        {
            var editDurationEvent        = new EditDurationEvent(false, EditDurationEvent.NavigationOrigin.Start);
            var changedEndTimeWithBarrel = editDurationEvent.ToDictionary()["changedEndTimeWithBarrel"];

            editDurationEvent = editDurationEvent.With(changedEndTimeWithBarrel: true);
            var dict = editDurationEvent.ToDictionary();

            changedEndTimeWithBarrel.Should().Be(false.ToString());
            dict["changedEndTimeWithBarrel"].Should().Be(true.ToString());
        }
 public override void CloseWithDefaultResult()
 {
     analyticsEvent = analyticsEvent.With(result: EditDurationEvent.Result.Cancel);
     analyticsService.Track(analyticsEvent);
     Close(defaultResult);
 }
 private Task close()
 {
     analyticsEvent = analyticsEvent.With(result: EditDurationEvent.Result.Cancel);
     analyticsService.Track(analyticsEvent);
     return(navigationService.Close(this, defaultResult));
 }