public AssessmentServiceTests() { logger = A.Fake <ILogger <AssessmentService> >(); notifyOptions = A.Fake <NotifyOptions>(); assessmentApiService = A.Fake <IAssessmentApiService>(); sessionIdToCodeConverter = A.Fake <ISessionIdToCodeConverter>(); sessionService = A.Fake <ISessionService>(); assessmentService = new AssessmentService(logger, notifyOptions, assessmentApiService, sessionIdToCodeConverter, sessionService); }
public AssessmentApiServiceTests() { serialiser = new NewtonsoftSerialiser(); getQuestionResponseDataProcessor = A.Fake <IDataProcessor <GetQuestionResponse> >(); getAssessmentResponseDataProcessor = A.Fake <IDataProcessor <GetAssessmentResponse> >(); httpMessageHandler = new MockHttpMessageHandler(); httpClient = httpMessageHandler.ToHttpClient(); httpClient.BaseAddress = new Uri("https://localhost"); assessmentApiService = new AssessmentApiService(httpClient, serialiser, getQuestionResponseDataProcessor, getAssessmentResponseDataProcessor); }
public AssessmentService( ILogger <AssessmentService> logger, NotifyOptions notifyOptions, IAssessmentApiService assessmentApiService, ISessionIdToCodeConverter sessionIdToCodeConverter, ISessionService sessionService) { this.logger = logger; this.notifyOptions = notifyOptions; this.assessmentApiService = assessmentApiService; this.sessionIdToCodeConverter = sessionIdToCodeConverter; this.sessionService = sessionService; }