Ejemplo n.º 1
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);
        }