Example #1
0
            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();
            }
Example #2
0
 protected override IObservable <List <ITask> > CallEndpointWith(ITogglApi togglApi, DateTimeOffset threshold)
 {
     plans.EnsureDefaultWorkspaceIsOnPlan(togglApi, PricingPlans.StarterMonthly).Wait();
     return(togglApi.Tasks.GetAllSince(threshold));
 }
Example #3
0
 protected override Task <List <ITask> > CallEndpointWith(ITogglApi togglApi)
 {
     plans.EnsureDefaultWorkspaceIsOnPlan(togglApi, PricingPlans.StarterMonthly).Wait();
     return(togglApi.Tasks.GetAll());
 }