Esempio n. 1
0
        public void SetUp()
        {
            var options = new DbContextOptionsBuilder <ApplicationDbContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString());

            this.partiesRepository         = new EfDeletableEntityRepository <Party>(new ApplicationDbContext(options.Options));
            this.partyApplicantsRepository = new EfRepository <PartyApplicant>(new ApplicationDbContext(options.Options));
            this.partiesService            = new PartiesService(this.partiesRepository, this.partyApplicantsRepository);
            AutoMapperConfig.RegisterMappings(typeof(TestParty).Assembly);
        }
Esempio n. 2
0
 public AccountController(ProfilesService ps, PartiesService partiesServ)
 {
     _ps          = ps;
     _partiesServ = partiesServ;
 }
 public PartiesController(PartiesService service)
 {
     _service = service;
 }
 public ProfilesController(ProfilesService service, PartiesService partiesServ)
 {
     _service     = service;
     _partiesServ = partiesServ;
 }