public async Task LMLicenseLimitationsService_StarterPlanInitialized_ConversionLimitationDisabled() { wibuManager = new LMDummyWibuManager(LMDummyWibuManager.STARTER_PRODUCT_TEXT); App.Current.LicenseManager = wibuManager; await App.Current.LicenseManager.Init(); service = new LMLicenseLimitationsService(); var featureLimitation = service.Get <FeatureLimitationVM> (LongoMatchFeature.VideoConverter.ToString()); Assert.IsNotNull(featureLimitation); Assert.AreEqual(LongoMatchFeature.VideoConverter.ToString(), featureLimitation.RegisterName); Assert.IsFalse(featureLimitation.Enabled); }
public async Task LMLicenseLimitationsService_BasicPlanInitialized_DatabaseManagerLimitationEnabled() { wibuManager = new LMDummyWibuManager(LMDummyWibuManager.BASIC_PRODUCT_TEXT); App.Current.LicenseManager = wibuManager; await App.Current.LicenseManager.Init(); service = new LMLicenseLimitationsService(); var featureLimitation = service.Get <FeatureLimitationVM> (LongoMatchFeature.DatabaseManager.ToString()); Assert.IsNotNull(featureLimitation); Assert.AreEqual(LongoMatchFeature.DatabaseManager.ToString(), featureLimitation.RegisterName); Assert.IsTrue(featureLimitation.Enabled); }
public async Task LMLicenseLimitationsService_LicenseChangeEventBasic_ConversionLimitationDisabled() { wibuManager = new LMDummyWibuManager(LMDummyWibuManager.PRO_PRODUCT_TEXT); App.Current.LicenseManager = wibuManager; await App.Current.LicenseManager.Init(); service = new LMLicenseLimitationsService(); service.Start(); var featureLimitation = service.Get <FeatureLimitationVM> (LongoMatchFeature.VideoConverter.ToString()); Assert.IsFalse(featureLimitation.Enabled); wibuManager = new LMDummyWibuManager(LMDummyWibuManager.BASIC_PRODUCT_TEXT); App.Current.LicenseManager = wibuManager; await App.Current.LicenseManager.Init(); await App.Current.EventsBroker.Publish(new LicenseChangeEvent()); Assert.IsTrue(featureLimitation.Enabled); service.Stop(); }