Code coverage report for Model/UrlProvider.js

Statements: 100% (8 / 8)      Branches: 100% (0 / 0)      Functions: 100% (4 / 4)      Lines: 100% (8 / 8)      Ignored: none     

All files » Model/ » UrlProvider.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34                                      1     1 2     5 2   5 4   5  
/*jshint node: true */
'use strict';
 
/*
* Name :  UrlProvider.js
* Module : FrontEnd::Model
* Location : /frontend/app/Model
*
* History :
* Version       Date        Programmer                  Description
* =================================================================================================
* 1.0.0         2015-06-21 Francesco Rossetto			Tested
*
* 0.1.0         2015-06-09 Francesco Rossetto			Add all attributes and methods
*
* 0.0.1         2015-06-09  Francesco Rossetto			Initial code      
* =================================================================================================
*/
 
angular.module('norris-nrti')
.factory('UrlProvider', function(){
	
	function UrlProvider() {
		this._url = '';
	}
	
	UrlProvider.prototype.setUrl = function(newUrl) {
		this._url = newUrl;
	};
	UrlProvider.prototype.getUrl = function() {
		return this._url;
	};
	return UrlProvider;
});