public EventsByApplicationUserIdQueryHandlerShould() { message = new EventsByApplicationUserIdQuery { ApplicationUserId = Guid.NewGuid().ToString() }; @event = new Event { Organizer = new ApplicationUser {Id = message.ApplicationUserId } }; Context.Add(@event); Context.SaveChanges(); sut = new EventsByApplicationUserIdQueryHandler(Context); }
public EventsByApplicationUserIdQueryHandlerShould() { message = new EventsByApplicationUserIdQuery { ApplicationUserId = Guid.NewGuid().ToString() }; @event = new Event { Organizer = new ApplicationUser { Id = message.ApplicationUserId } }; Context.Add(@event); Context.SaveChanges(); sut = new EventsByApplicationUserIdQueryHandler(Context); }