public void GetLicenseBySubscription() { try { var licList = licLogic.GetLicenseList(sub.Id); Assert.IsTrue(licList.Count > 0); } catch (Exception ex) { Assert.Fail(ex.Message); } }
public UserLicenseLogicTest() { InitializerClass.Initialize(); userLicLogic = new UserLicenseLogic(); userLogic = new UserLogic(); licLogic = new Logic.ServiceLogic.LicenseLogic(); userLicLogic = new UserLicenseLogic(); subLogic = new UserSubscriptionLogic(); AdminUser = userLogic.GetUserByEmail("*****@*****.**"); TeamMember = userLogic.GetUserByEmail("*****@*****.**"); Sub = subLogic.GetSubscription(AdminUser.UserId).First(); LicenseList = licLogic.GetLicenseList(Sub.Id); }