public async Task QuerySingleEntityAsyncReturnsNotFoundIfconfigNameDoesNotExist()
        {
            string name = "config-name";

            model.GetEntityByNameAsync(name).Returns((ConfigEntity)null);
            var context = new QueryContext(name, QueryTypes.ValueRequest, model);

            var result = await AllQueries.QueryConfigEntityAsync(context);

            Assert.False(result.IsSuccess);
            Assert.Null(result.Result);
            Assert.Equal(ResultType.NotFound, result.ResultType);
        }
        public async Task DeleteAsyncConfigEntityNotFound()
        {
            var request = new ConfigChangeRequest {
                Name = "name", Value = "value"
            };
            var context  = new CommandContext(CommandTypes.Delete, request, model);
            var expected = new ConfigEntity {
                Name = "name", Value = "old"
            };

            model.GetEntityByNameAsync("name").Returns((ConfigEntity)null);

            var result = await AllCommands.DeleteAsync(context);

            Assert.False(result.IsSuccess);
            Assert.Null(result.Result);
            Assert.Equal(ResultType.NotFound, result.ResultType);
        }