Beispiel #1
0
        public async Task Context()
        {
            _commandExecutor = A.Fake <ICommandExecutor>();
            _queryExecutor   = A.Fake <IQueryExecutor>();
            A.CallTo(() => _queryExecutor.ExecuteAsync <GetUserDetailsByEmailAddressQuery, UserDto>(A <GetUserDetailsByEmailAddressQuery> ._))
            .Returns(new[] { new UserDto() });
            var controller = new TemplateController(_commandExecutor, _queryExecutor);

            _createVariableCommand = new CreateVariableCommand();

            await controller.CreateVariable(_createVariableCommand);
        }