Esempio n. 1
0
            public void ThrowsForAnInvalidEmailAddress()
            {
                var invalidEmail = Email.From($"{Guid.NewGuid()}@toggl.");

                Func <Task> sendingFeedback = async() => await feedbackApi.Send(invalidEmail, "ABC.", new Dictionary <string, string>());

                sendingFeedback.Should().Throw <ArgumentException>();
            }
Esempio n. 2
0
 public IObservable <Unit> Execute()
 => workspacesCount.Zip(
     timeEntriesCount,
     unsyncedTimeEntriesCount,
     unsyncabeTimeEntriesCount,
     combineData)
 .SelectMany(data =>
             userDataSource.Get().SelectMany(user =>
                                             feedbackApi.Send(user.Email, message, data)));
Esempio n. 3
0
 public IObservable <Unit> Execute()
 => Observable.Zip(
     workspacesCount,
     timeEntriesCount,
     unsyncedTimeEntriesCount,
     unsyncabeTimeEntriesCount,
     accountTimezone,
     interactorFactory.GetCurrentUser().Execute(),
     combineData)
 .SelectMany(data =>
             userDataSource.Get().SelectMany(user =>
                                             feedbackApi.Send(user.Email, message, data).ToObservable()));