예제 #1
0
 public IndexModel(ActQueries actQueries, ActCommands actCommands, ContentQueries contentQueries, ContentCommands contentCommands)
 {
     this.actQueries      = actQueries;
     this.actCommands     = actCommands;
     this.contentQueries  = contentQueries;
     this.contentCommands = contentCommands;
 }
예제 #2
0
        public ActTests()
        {
            var repository = new PromotionContext(new DbContextOptionsBuilder <PromotionContext>()
                                                  .UseInMemoryDatabase(Guid.NewGuid().ToString())
                                                  .Options, null);

            actQueries  = new ActQueries(repository);
            actCommands = new ActCommands(repository);
        }
예제 #3
0
 public RemoveModel(ActQueries actQueries, ActCommands actCommands)
 {
     this.actQueries  = actQueries;
     this.actCommands = actCommands;
 }