Esempio n. 1
0
 public LoginAppTests()
 {
     domainNotificationHandler   = new DomainNotificationHandler();
     this.subNotificationHandler = domainNotificationHandler;
     this.subUserRepository      = Substitute.For <IUserRepository>();
     this.smartNotification      = new SmartNotification(this.subNotificationHandler);
     this.loginAppServices       = new LoginAppServices(this.smartNotification, this.subUserRepository);
 }
 public HeroAppServiceTests()
 {
     domainNotificationHandler   = new DomainNotificationHandler();
     this.subNotificationHandler = domainNotificationHandler;
     this.subHeroRepository      = Substitute.For <IHeroRepository>();
     this.smartNotification      = new SmartNotification(this.subNotificationHandler);
     this.heroAppService         = new HeroAppService(this.smartNotification, this.subHeroRepository);
 }
Esempio n. 3
0
 public UserAppTests()
 {
     domainNotificationHandler   = new DomainNotificationHandler();
     this.subNotificationHandler = domainNotificationHandler;
     this.subUserRepository      = Substitute.For <IUserRepository>();
     this.subProfileRepository   = Substitute.For <IProfileRepository>();
     this.smartNotification      = new SmartNotification(this.subNotificationHandler);
     this.userAppServices        = new UserAppServices(this.smartNotification, this.subUserRepository, this.subProfileRepository);
 }
Esempio n. 4
0
 public ActorAppTests()
 {
     domainNotificationHandler   = new DomainNotificationHandler();
     this.subNotificationHandler = domainNotificationHandler;
     this.subActorRepository     = Substitute.For <IActorRepository>();
     this.subUserRepository      = Substitute.For <IUserRepository>();
     this.subGenreRepository     = Substitute.For <IGenreRepository>();
     this.smartNotification      = new SmartNotification(this.subNotificationHandler);
     this.ActorAppServices       = new ActorAppServices(this.smartNotification, this.subActorRepository, this.subUserRepository, this.subGenreRepository);
 }