Exemplo n.º 1
0
 public MessagesController(ILogger logger, ICrudOnMessages crudOnMessages, IAuthorization authorization, IThrowExceptionToUser throwExceptionToUser)
 {
     this.logger               = logger;
     this.crudOnMessages       = crudOnMessages;
     this.authorization        = authorization;
     this.throwExceptionToUser = throwExceptionToUser;
 }
Exemplo n.º 2
0
 public void Initialize()
 {
     TestInitialiser.Initialise();
     crudOnMessages = TestInitialiser.ninjectKernel.kernel.Get <ICrudOnMessages>();
     message        = TestInitialiser.CreateMessage();
     productId      = TestInitialiser.context.Products.ToList()[0].Id;
 }
Exemplo n.º 3
0
 public UsersController(ILogger logger, ICrudOnUsers crudOnUsers, IAuthorization authorization, ICrudOnMessages crudOnMessages, IMyPasswordGenerator myPasswordGenerator, IMailSender mailSender, IThrowExceptionToUser throwExceptionToUser)
 {
     this.crudOnUsers          = crudOnUsers;
     this.logger               = logger;
     this.crudOnMessages       = crudOnMessages;
     this.authorization        = authorization;
     this.mailSender           = mailSender;
     this.myPasswordGenerator  = myPasswordGenerator;
     this.throwExceptionToUser = throwExceptionToUser;
 }
Exemplo n.º 4
0
 public CrudOnProducts(ICrudOnMessages crudOnMessages, DonkeySellContext context)
 {
     this.context        = context;
     this.crudOnMessages = crudOnMessages;
 }