fit.Test.Double.SampleDomain.Throw C# (CSharp) Method

Throw() public method

public Throw ( string message ) : string
message string
return string
        public string Throw(string message)
        {
            if (message == null) throw new NullReferenceException();
            if (message == "OK") return message;
            throw new ApplicationException(message);
        }