Exemplo n.º 1
0
 public void Setup()
 {
     _webSiteRepository  = Substitute.For <IRepository <WebSite> >();
     _webSiteManagerData = Substitute.For <IWebSiteManagerData>();
     _passwordEncryptor  = Substitute.For <IPasswordEncryptor>();
     _webSiteService     = new WebSiteService(_webSiteManagerData, _passwordEncryptor);
 }
Exemplo n.º 2
0
 public WebSiteService(IWebSiteManagerData webSiteManagerData,
                       IPasswordEncryptor passwordEncryptor)
 {
     _webSiteManagerData = webSiteManagerData;
     _passwordEncryptor  = passwordEncryptor;
 }