示例#1
0
        public UseCaseTest(TeapotFactoryFixture teapotFactory)
        {
            _teapot = teapotFactory.CreateTeapotServer(Url);

            _loggerFactory =
                new LoggerFactory()
                .AttachObject("Environment", ConfigurationManager.AppSettings["app:Environment"])
                .AttachObject("Product", ProgramInfo.FullName)
                .AttachScope()
                .AttachSnapshot()
                .Attach <Timestamp <DateTimeUtc> >()
                .AttachElapsedMilliseconds()
                .AddObserver(_memoryRx = new MemoryRx());
        }
示例#2
0
 public UseCaseTest(TeapotFactoryFixture teapotFactory)
 {
     _teapot = teapotFactory.CreateTeapotServer(BaseUri);
     _http   = new HttpProvider(ApiUri, ImmutableSession.Empty);
 }
示例#3
0
 public UseCaseTest(TeapotFactoryFixture teapotFactory)
 {
     _teapot = teapotFactory.CreateTeapotServer("http://localhost:6000");
     _http   = new HttpProvider("http://localhost:6000/api");
 }