public static async Task FillChannelCookieNetAsync(IChannel channel) { switch (channel.Site) { case SiteType.Tapochek: TapochekSite fb = CommonFactory.CreateTapochekSite(); channel.ChannelCookies = await fb.GetCookieNetAsync(channel).ConfigureAwait(false); break; default: throw new Exception(channel + " is not implemented yet"); } }
public TapochekSiteTest() { tf = CommonFactory.CreateTapochekSite(); db = CommonFactory.CreateSqLiteDatabase(); }