Пример #1
0
        public AccountCommand(IPhotoCommand photoCommand, IProfileCommand profileCommand, IUserStore userStore, IAccountStore accountStore, IAccountCache cache)
        {
            Ensure.Any.IsNotNull(photoCommand, nameof(photoCommand));
            Ensure.Any.IsNotNull(profileCommand, nameof(profileCommand));
            Ensure.Any.IsNotNull(userStore, nameof(userStore));
            Ensure.Any.IsNotNull(accountStore, nameof(accountStore));
            Ensure.Any.IsNotNull(cache, nameof(cache));

            _photoCommand   = photoCommand;
            _profileCommand = profileCommand;
            _userStore      = userStore;
            _accountStore   = accountStore;
            _cache          = cache;
        }
Пример #2
0
        public PhotosController(IPhotoCommand command)
        {
            Ensure.Any.IsNotNull(command, nameof(command));

            _command = command;
        }