public AlphaService( IAlphaWebClientRepository alphaWebClientRepository, IAlphaJsonConvertRepository alphaJsonConvertRep, IAlphaConsoleRepository alphaConsoleRepository ) { this.alphaWebClientRepository = alphaWebClientRepository; this.alphaJsonConvertRep = alphaJsonConvertRep; this.alphaConsoleRepository = alphaConsoleRepository; }
public void TestSetup() { this.alphaWebClientRep = Substitute.For <IAlphaWebClientRepository>(); this.alphaJsonConvertRep = Substitute.For <IAlphaJsonConvertRepository>(); this.alphaConsoleRep = Substitute.For <IAlphaConsoleRepository>(); this.alphaService = new AlphaService(this.alphaWebClientRep, this.alphaJsonConvertRep, this.alphaConsoleRep); this.rootObject = new RootObject() { RestResponse = new RestResponse() { result = new System.Collections.Generic.List <Result>(), messages = new System.Collections.Generic.List <string>() } }; }
public AlphaService(IAlphaDataContext alphaDataContext, IAlphaConsoleRepository alphaConsoleRepository) { _alphaDataContext = alphaDataContext; _alphaConsoleRepository = alphaConsoleRepository; }