public SubscriptionControllerTest() { this.CreateAppContext(); // Automapper initializers Mapper.Initialize(cfg => { cfg.AddProfile <SubscriptionProfileMapping>(); }); // setting up the context and repositories this.SubscriptionDbContext = this.CreateDbContext <SubscriptionDbContext>(); SubscriptionRepository subscriptionRepository = new SubscriptionRepository(this.SubscriptionDbContext); SubscriptionDomain subscriptionDomain = new SubscriptionDomain(subscriptionRepository); this.Controller = new SubscriptionController(subscriptionDomain); }
public SubscriptionController(SubscriptionDomain domain) { this._domain = domain; }