private void UpdateNumberOfAvailableLicensesFor( CustomerCspId customerCspId, IEnumerable <CspSubsctriptionAvailableLicenseNumberAlignmentResult> cspSubsctriptionAvailableLicenseNumberAlignmentResults) { cspSubsctriptionAvailableLicenseNumberAlignmentResults.ToList().ForEach(result => UpdateNumberOfAvailableLicensesFor(customerCspId, result)); }
private void UpdateNumberOfAvailableLicensesFor(CustomerCspId customerCspId, CspSubsctriptionAvailableLicenseNumberAlignmentResult result) { microsoftOffice365SubscriptionsOperations.ChangeSubscriptionQuantity( customerCspId, result.SubscriptionId, result.NewNumberOfAvailableLicenses); }
public User GetUserDetails(CustomerCspId customerId, UserName userName) { // Fake implementation. We would use the actual Microsoft Office365 API in here. return(new User( new UserName("*****@*****.**"), "FirstName", "LastName")); }
public void DeleteUser(CustomerCspId customerId, UserName userName) { // Fake implementation. We would use the actual Microsoft Office365 API in here. }
public IEnumerable <SubscriptionCspId> GetAssignedSubscriptionIds(CustomerCspId customerId, UserName userName) { // Fake implementation. We would use the actual Microsoft Office365 API in here. return(Enumerable.Empty <SubscriptionCspId>()); }
private void DeleteUserWith(CustomerCspId customerCspId, string userName) { microsoftOffice365UsersOperations.DeleteUser(customerCspId, new UserName(userName)); }
private CspSubscriptions GetCspSubscriptionsFor(CustomerCspId customerCspId) => microsoftOffice365SubscriptionsOperations.GetSubscriptions(customerCspId);
private User GetUserDetailsFor(CustomerCspId customerCspId, string userName) => microsoftOffice365UsersOperations.GetUserDetails(customerCspId, new UserName(userName));
private IEnumerable <SubscriptionCspId> GetCspSubscriptionIdsOfLicensesAssignedToAUserWith( CustomerCspId customerCspId, string userName) => microsoftOffice365UsersOperations.GetAssignedSubscriptionIds( customerCspId, new UserName(userName));
public CspSubscriptions GetSubscriptions(CustomerCspId customerId) => microsoftOffice365SubscriptionsOperationsMock.Object.GetSubscriptions(customerId);
public void ChangeSubscriptionQuantity( CustomerCspId customerId, SubscriptionCspId subscriptionId, LicenseQuantity newQuantity) { microsoftOffice365SubscriptionsOperationsMock.Object .ChangeSubscriptionQuantity(customerId, subscriptionId, newQuantity); }
public void DeleteUser(CustomerCspId customerId, UserName userName) { microsoftOffice365UsersOperationsMock.Object.DeleteUser(customerId, userName); }
public IEnumerable <SubscriptionCspId> GetAssignedSubscriptionIds(CustomerCspId customerId, UserName userName) => microsoftOffice365UsersOperationsMock.Object.GetAssignedSubscriptionIds(customerId, userName);
public User GetUserDetails(CustomerCspId customerId, UserName userName) => microsoftOffice365UsersOperationsMock.Object.GetUserDetails(customerId, userName);
public CspSubscriptions GetSubscriptions(CustomerCspId customerId) { // Fake implementation. We would use the actual Microsoft Office365 API in here. return(new CspSubscriptions(Enumerable.Empty <CspSubscription>())); }
public void ChangeSubscriptionQuantity(CustomerCspId customerId, SubscriptionCspId subscriptionId, LicenseQuantity newQuantity) { // Fake implementation. We would use the actual Microsoft Office365 API in here. }