Esempio n. 1
0
 private void UpdateNumberOfAvailableLicensesFor(
     CustomerCspId customerCspId,
     IEnumerable <CspSubsctriptionAvailableLicenseNumberAlignmentResult> cspSubsctriptionAvailableLicenseNumberAlignmentResults)
 {
     cspSubsctriptionAvailableLicenseNumberAlignmentResults.ToList().ForEach(result =>
                                                                             UpdateNumberOfAvailableLicensesFor(customerCspId, result));
 }
Esempio n. 2
0
 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>());
        }
Esempio n. 6
0
 private void DeleteUserWith(CustomerCspId customerCspId, string userName)
 {
     microsoftOffice365UsersOperations.DeleteUser(customerCspId, new UserName(userName));
 }
Esempio n. 7
0
 private CspSubscriptions GetCspSubscriptionsFor(CustomerCspId customerCspId) =>
 microsoftOffice365SubscriptionsOperations.GetSubscriptions(customerCspId);
Esempio n. 8
0
 private User GetUserDetailsFor(CustomerCspId customerCspId, string userName) =>
 microsoftOffice365UsersOperations.GetUserDetails(customerCspId, new UserName(userName));
Esempio n. 9
0
 private IEnumerable <SubscriptionCspId> GetCspSubscriptionIdsOfLicensesAssignedToAUserWith(
     CustomerCspId customerCspId, string userName) =>
 microsoftOffice365UsersOperations.GetAssignedSubscriptionIds(
     customerCspId, new UserName(userName));
Esempio n. 10
0
 public CspSubscriptions GetSubscriptions(CustomerCspId customerId) =>
 microsoftOffice365SubscriptionsOperationsMock.Object.GetSubscriptions(customerId);
Esempio n. 11
0
 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.
 }