public void TriageService_WhenCalledWithMissingTitle_ThenStatusCodeIsNotSucess() { //Given var bugTitle = string.Empty; var bugDescirption = "some description"; ITriageBugService triageBugService = new TriageBugService(); //When Action action = () => triageBugService.GetSeverity(bugTitle, bugDescirption); //Then Should.Throw <Exception>(action); }
public void TriageService_WhenSeverityCalled_ThenValidValueIsReturned() { //Given var bugTitle = "test"; var bugDescirption = "test"; ITriageBugService triageBugService = new TriageBugService(); //When int actualSeverity = triageBugService.GetSeverity(bugTitle, bugDescirption); //Then actualSeverity.ShouldBeInRange(100, 250); }