public async void CreatingTaskWorksForAllPricingPlansOtherThanTheFreePlan(PricingPlans plan) { var(togglApi, user) = await SetupTestUser(); await plans.EnsureDefaultWorkspaceIsOnPlan(user, plan); var project = createProject(togglApi, user.DefaultWorkspaceId).Wait(); Action creatingTask = () => createTask(togglApi, project, user.Id).Wait(); creatingTask.ShouldNotThrow(); }
protected override IObservable <List <ITask> > CallEndpointWith(ITogglApi togglApi, DateTimeOffset threshold) { plans.EnsureDefaultWorkspaceIsOnPlan(togglApi, PricingPlans.StarterMonthly).Wait(); return(togglApi.Tasks.GetAllSince(threshold)); }
protected override Task <List <ITask> > CallEndpointWith(ITogglApi togglApi) { plans.EnsureDefaultWorkspaceIsOnPlan(togglApi, PricingPlans.StarterMonthly).Wait(); return(togglApi.Tasks.GetAll()); }