public void ShouldGetNoValidStateCommandsForWrongUser() { var facilitator = new WorkflowFacilitator(new StubbedCalendar(new DateTime(2000, 1, 1))); var report = new ExpenseReport(); var employee = new Employee(); IStateCommand[] commands = facilitator.GetValidStateCommands(report, employee); Assert.That(commands.Length, Is.EqualTo(0)); }
public void ShouldGetNoValidStateCommandsForWrongUser() { var facilitator = new WorkflowFacilitator(); var report = new ExpenseReport(); var employee = new Employee(); IStateCommand[] commands = facilitator.GetValidStateCommands(new ExecuteTransitionCommand { Report = report, CurrentUser = employee }); Assert.That(commands.Length, Is.EqualTo(0)); }