public CampaignByApplicationUserIdQueryHandlerShould()
        {
            message = new CampaignByApplicationUserIdQuery() { ApplicationUserId = Guid.NewGuid().ToString() };
            campaign = new Campaign {  Organizer  =  new ApplicationUser() { Id = message.ApplicationUserId } };

            Context.Add(campaign);
            Context.SaveChanges();

            sut = new CampaignByApplicationUserIdQueryHandler(Context);
        }
Esempio n. 2
0
        public CampaignByApplicationUserIdQueryHandlerShould()
        {
            message = new CampaignByApplicationUserIdQuery()
            {
                ApplicationUserId = Guid.NewGuid().ToString()
            };
            campaign = new Campaign {
                Organizer = new ApplicationUser()
                {
                    Id = message.ApplicationUserId
                }, Published = true
            };

            Context.Add(campaign);
            Context.SaveChanges();

            sut = new CampaignByApplicationUserIdQueryHandler(Context);
        }