public GetMeetingsTests() { _meetingQuery = A.Fake <IMeetingQuery>(); _employeeQuery = A.Fake <IEmployeeQuery>(); _host = new HostBuilder() .ConfigureWebHost(webBuilder => { webBuilder .UseTestServer() .Configure(app => { }) .UseStartup <Startup>() .ConfigureTestServices(services => { services.AddTransient(provider => _employeeQuery) .AddTransient(provider => _meetingQuery); }); }) .Start(); _client = _host.GetTestClient(); }
public MeetingController(IEmployeeQuery employeeQuery, IMeetingQuery meetingQuery, IValidator <SuitableMeetingsRequest> validator) { _employeeQuery = employeeQuery; _meetingQuery = meetingQuery; _validator = validator; }