public void AcceptanceTestsPassed() { ICanRunAcceptanceTests state = GetState <ICanRunAcceptanceTests>(); if (state == null) { Console.WriteLine("Cannot mark the code as done from state: {0}", State.Name); return; } state.AcceptanceTestsPassed(); }
public void AcceptanceTestsFail() { ICanRunAcceptanceTests state = GetState <ICanRunAcceptanceTests>(); if (state == null) { Console.WriteLine("Cannot fail the acceptance tests from state: {0}", State.Name); return; } state.AcceptanceTestsFail(); }