public void UpdateWithProjectNameExpectCorrectViewResult()
        {
            const string projectName = "TestProjectName";

            this.buildCommunicator
                .Stub(bc => bc.GetBuildInformation(3, 5, projectName, string.Empty))
                .Return(new BuildStatus());

            var buildsController = new BuildsController(buildCommunicator, 3, 5);
            var result = buildsController.Update(projectName) as ViewResult;

            Assert.IsNotNull(result);

            var model = result.Model as BuildStatusModel;
            Assert.IsNotNull(model);
        }
        public void UpdateExpectCorrectViewResult()
        {
            this.buildCommunicator
                .Stub(bc => bc.GetBuildInformation(2, 4, "*", string.Empty))
                .Return(new BuildStatus());

            var buildsController = new BuildsController(buildCommunicator, 2, 4);
            var result = buildsController.Update() as ViewResult;

            Assert.IsNotNull(result);

            var model = result.Model as BuildStatusModel;
            Assert.IsNotNull(model);
        }