示例#1
0
 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"));
 }
示例#2
0
 public ChequesController(IChequeComponent chequeComponent, IChequeData chequeData)
 {
     this.chequeComponent = chequeComponent;
     this.chequeData      = chequeData;
 }