public override void SetUp() { base.SetUp(); AdjustFactory.Logger = MockLogger; var activityHandler = UtilTest.GetActivityHandler(MockLogger, DeviceUtil); MockLogger.Reset(); ClickPackage = UtilTest.CreateClickPackage(activityHandler, ""); MockHttpMessageHandler = new MockHttpMessageHandler(MockLogger); AdjustFactory.SetHttpMessageHandler(MockHttpMessageHandler); MockPackageHandler = new MockPackageHandler(MockLogger); RequestHandler = new RequestHandler(MockPackageHandler); /* var packageBuilder = new PackageBuilder() { UserAgent = DeviceUtil.GetUserAgent(), ClientSdk = DeviceUtil.ClientSdk, }; SessionPackage = packageBuilder.BuildSessionPackage(); * */ }
public override void SetUp() { base.SetUp(); MockActivityHandler = new MockActivityHandler(MockLogger); MockHttpMessageHandler = new MockHttpMessageHandler(MockLogger); AdjustFactory.Logger = MockLogger; AdjustFactory.SetActivityHandler(MockActivityHandler); AdjustFactory.SetHttpMessageHandler(MockHttpMessageHandler); AttributionPackage = GetAttributionPackage(); }