public void TaskAssignments_AssignTaskBeforeNow_InvalidState() { SetupSampleTasks(); SetupSampleUsers(); var resp = _assignments.Apply(new AssignTask(WeeklyTaskId, User1, _now.Minus(TimeSpan.FromHours(1)))); resp.AssertStatusIs(ResponseStatus.InvalidState); }
public void Pledges_SetUserPledgeForTimeBeforeNow_InvalidState() { var resp = _pledges.Apply(new SetPledge(User1, PledgeAmount, _now.Minus(TimeSpan.FromHours(1)))); resp.AssertStatusIs(ResponseStatus.InvalidState); }