public void TestInitialize() { configProvider = Substitute.For <IConfigProvider>(); DatabaseConnectionString = GetIntegrationTestConnectionString(); configProvider.GetConnectionString().Returns(DatabaseConnectionString); chequeComponent = new ChequeComponent(); chequeData = new ChequeData(configProvider); chequeController = new ChequeController(chequeComponent, chequeData); client = new HttpClient() { BaseAddress = GetRequestUrl() }; client.DefaultRequestHeaders.Accept.Clear(); client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); }
public ChequesController(IChequeComponent chequeComponent, IChequeData chequeData) { this.chequeComponent = chequeComponent; this.chequeData = chequeData; }