public CreateTaskQueryHandlerShould() { @event = new Event { Id = 1, Name = "EventName", StartDateTime = DateTimeOffset.Now, EndDateTime = DateTimeOffset.Now, Campaign = new Campaign { StartDateTime = DateTimeOffset.Now, EndDateTime = DateTimeOffset.Now, Name = "CampaignName", ManagingOrganizationId = 2, TimeZoneId = "Central Standard Time" } }; Context.Add(@event); Context.SaveChanges(); message = new CreateTaskQuery { EventId = @event.Id }; sut = new CreateTaskQueryHandler(Context); }