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>(); }
public IObservable <Unit> Execute() => workspacesCount.Zip( timeEntriesCount, unsyncedTimeEntriesCount, unsyncabeTimeEntriesCount, combineData) .SelectMany(data => userDataSource.Get().SelectMany(user => feedbackApi.Send(user.Email, message, data)));
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()));