Пример #1
0
 public AlphaService(
     IAlphaWebClientRepository alphaWebClientRepository,
     IAlphaJsonConvertRepository alphaJsonConvertRep,
     IAlphaConsoleRepository alphaConsoleRepository
     )
 {
     this.alphaWebClientRepository = alphaWebClientRepository;
     this.alphaJsonConvertRep      = alphaJsonConvertRep;
     this.alphaConsoleRepository   = alphaConsoleRepository;
 }
Пример #2
0
        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>()
                }
            };
        }
Пример #3
0
 public AlphaService(IAlphaDataContext alphaDataContext, IAlphaConsoleRepository alphaConsoleRepository)
 {
     _alphaDataContext       = alphaDataContext;
     _alphaConsoleRepository = alphaConsoleRepository;
 }