public WhenCustomerUsesManualLicensingMode()
            {
                var userOperations = new UserOperations(
                    new CustomersInformationStoreSimulator()
                    .ForCustomerWithNumber(ACustomerNumber)
                    .ReturnsCustomerWith(
                        cspId: ACustomerCspId,
                        licensingMode: Manual),
                    microsoftOffice365UsersOperations,
                    microsoftOffice365SubscriptionsOperations);

                userOperations.DeleteUser(ADeleteUserCommandWith(ACustomerNumber, AUserName));
            }
Пример #2
0
        public void PresentsUserContactInformation()
        {
            var presenter      = new UserDetailsPresenterSimulator();
            var userOperations = new UserOperations(
                new CustomersInformationStoreSimulator()
                .ForCustomerWithNumber(ACustomerNumber)
                .ReturnsCustomerWith(ACustomerCspId),
                new MicrosoftOffice365UsersOperationsSimulator()
                .ForCustomerWithId(ACustomerCspId)
                .AndUser(AUserName)
                .ReturnsUser(AUser
                             .WithUserName(AUserName)
                             .WithFirstName(AUserFirstName)
                             .WithLastName(AUserLastName)),
                new MicrosoftOffice365SubscriptionsOperationsSimulator());

            userOperations.GetUserDetails(AGetUserDetaisCommandWith(ACustomerNumber, AUserName), presenter);

            presenter.HasPresentedUserDataWith(AUserName, AUserFirstName, AUserLastName);
        }