public void GetSourceCodeUrl_Success() { var controller = new SourceCodeController(); var response = controller.Get(); var result = response as OkObjectResult; Assert.IsNotNull(result); Assert.AreEqual(200, result.StatusCode); Assert.AreEqual("https://github.com/FilipeAndrade/ApiTwo", result.Value); }
public void SetUp() { testController = MockRepository.GenerateStub <ITestController>(); sourceCodeController = new SourceCodeController(testController); }